Skip to main content
Question

Missing value in Posting

  • June 5, 2025
  • 7 replies
  • 48 views

Hi mighty Community

I inherited a zap at work. It catches the webhook from a website form, grab the details (name, email, phone and comments), structure the outgoing comment (in 2nd action) and posts to a PHP page. Mulesoft picks it up and drop into Salesforce. 

For a long time, zap fails on the 2nd action when the comments field receives apostrophe and line break. 

I decided to use Code action to replace them. However, the output to PHP page no longer carries the name, email and phone. Zap run successfully but fails at downstream due to the missing information. 

Does anyone have experience in this area?

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

7 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34032 replies
  • June 5, 2025

Hi ​@Hao Li 

Instead of Code, you can try using this Zap step: AI by Zapier - Analyze and Return Data
Help: https://zapier.com/apps/ai/integrations#help


  • Author
  • Beginner
  • 3 replies
  • June 5, 2025

Thanks ​ ​@Troy Tessalone , I will give it a try. The bit I’m not confident with is that adding actions in between the existing trigger and POST action seems causing data loss to downstream. 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 9676 replies
  • June 20, 2025

Hey ​@Hao Li, just checking in! 👋

How did you get on with that AI by Zapier action Troy suggested—did it work as needed? 

Let us know if you could do with any more help, I’d be happy to lend a hand! 🙂


  • Author
  • Beginner
  • 3 replies
  • June 22, 2025

Hi ​@SamB 

thanks for the follow up. 

The business prefers not to utilise AI until we have a governance policy in place. 

For now, I need to work with pre-set actions to continue battling the issue :,>

 

regards

Hao

 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 9676 replies
  • June 30, 2025

Sorry to hear that ​@Hao Li. Can you share a screenshot of what’s been selected in that Webhooks action so we can take a closer look?

If you’re mapping the Name1, Phone and Email fields from the Webhooks trigger (in the Webhooks action) then the values those fields contain should be being passed over. 🤔 

Is it that the Comments field in the Webhooks action, has also been mapped from the trigger, instead of being selected from the Code action where the apostrophes and line breaks were removed?


  • Author
  • Beginner
  • 3 replies
  • July 2, 2025

Hi ​@SamB 

Please see screenshot of the details on 1.Catch Hook. Data out from here is good. 

Before I inserted the 2.Run Javascript action, (the version when it was Catch Hook → Post), name, mobile and email got posted in the payload even though they’re not visible in the configuration. The posted payload gets consumed in downstream app with no issue. ever since, I added the Javascript, it stopped posting the name, mobile and email. 

To your last question, I mapped the comment as the input data in the code action. 

 

thanks again for your help. 

Hao

This post has been edited by a moderator to remove personally identifiable information (PII). Please remember that this is a public forum and avoid sharing sensitive details.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 9676 replies
  • July 3, 2025

Thanks for sharing those screenshots, ​@Hao Li—much appreciated! 🙂

Looks like you’ve definitely got that Cleaned Comments field mapped from the Code action. However, the setup of the Webhooks action doesn’t look quite how I’d expect. Usually, I’d expect to see data like the form title, model and comments sent within the Data section, rather than the Headers section:

e407a9c6f82e587fde240ede4df1d596.png
Check out our Send webhooks in Zaps guide to learn more about sending webhooks via a Zap.

Can you try moving what is currently in the Headers over to the data section to see if that fixes it?