My Input gets converted into an array

Userlevel 1

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: '',
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) => {
const results = response.content;
// You can do any parsing you need for results here before returning them
const words = results.split('|');

return {status: words[0].trim(), phone : words[1].trim(), id : words[2].trim() }


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.