Skip to main content

In order to prevent the comma from being lost when the obtained array contains empty elements,
Referring to the article below, I use the following format action.
https://community.zapier.com/code%2Dwebhooks%2D52/how%2Dto%2Ddeal%2Dwith%2Da%2Dnull%2Dvalue%2Din%2Da%2Dline%2Ditem%2D389


However, if the value contains double quotes, a spreadsheet syntax error will occur.

 

Is there any way to solve this?

Hi there @Suzuki 👋

It looks like the selected Records Title fields have double quotes (") that are breaking the formula: 

d75c41382bac30c69b37953378da0a63.png

I’d suggest using a Text > Replace (Formatter) action to remove the quotes from the Records Title field. Then in the formula, instead of selecting the Records Title field you’d select the output from the Text > Replace (Formatter) field instead. You can learn more about how to use that Text > Replace (Formatter) action here: Find and replace values in your Zaps


Can you give that a try and let us know if that fixes it?


Hi there @Suzuki 👋

It looks like the selected Records Title fields have double quotes (") that are breaking the formula: 

d75c41382bac30c69b37953378da0a63.png

I’d suggest using a Text > Replace (Formatter) action to remove the quotes from the Records Title field. Then in the formula, instead of selecting the Records Title field you’d select the output from the Text > Replace (Formatter) field instead. You can learn more about how to use that Text > Replace (Formatter) action here: Find and replace values in your Zaps


Can you give that a try and let us know if that fixes it?

 

Thank you for your reply.

 

But the problem persists.

If you include an action that formats double quotes, empty elements will disappear.

I also need to replace empty elements with NONE.


Thanks for giving my suggestion a try ​@Suzuki, sorry to hear it didn’t work as hoped.  

I just ran a quick test in my own Zap using the same text that’s in that Records Title field and manage to get the formula to work.

I set up a field called Records Title in Salesforce and added text that was similar to what appeared in your screenshot (I couldn’t find an exact match for one of the characters but it should work the same for any text that’s included in the Records Title field):
f76ef9db3ca52c376bf411d21cfd7dfe.png
Next, I set the formula to use the output from the previous Formatter action like so:
57a0fac424136a45be53088d26201847.png
And that output the value from the field (with the double quotes removed):
8bc2a5fef936c5ffba6de41d756005e1.png


And when the field contained no data:
1a8d2ef4f5218863c6b2be3644dd634a.png

The formula returned a value of “NONE”:

f35b70bcc23d57fe3675c0fbeb61576e.png

Can you compare the above screenshots with your Zap and update the Zap if it doesn’t match?

If the setup of those Formatter actions in your Zap does match and it’s still not working can you send over some screenshots showing the current setup of the Formatter actions in the Zap so I can take a closer look to see what might be preventing it from working?

Thanks, I look forward to your reply! 🙂


Reply