I am in the Zapier platform trying to send a request. I have the text input field of bundle.inputData.caption that needs to sent what is input into that field. The problem is that if there is a “,” in the string it turns it into an array. If there is a ‘ in the string it messes everything up. What do I need to do to the string to not convert it to an array and put ‘ as \’ i.e. this is what i am trying to send: “From the MD and Co-Founder's Desk, BharatPe”
const options = {
url: 'http://xyz.com/GatewayAPI/rest',
method: 'POST',
headers: {
},
params: {
},
form: {
'send_to': bundle.inputData.send_to,
'userid': bundle.authData.user_id,
'password': bundle.authData.password,
'msg_type': 'DOCUMENT',
'auth_scheme': 'plain',
'caption': bundle.inputData.caption,
}
}
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.content;
// You can do any parsing you need for results here before returning them
const words = results.split('|');
return {status: wordse0].trim(), phone : wordst1].trim(), id : words12].trim() }
});