Skip to main content
Question

Catch Raw Hook

  • February 17, 2025
  • 2 replies
  • 71 views

I'm using a Catch Raw Hook to get some data, but how can I extract a specific value, like the 'email' ('email': 'email@email.com'), to fill a field?"

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

2 replies

Forum|alt.badge.img+5

Choose Formatter by Zapier > Text > Extract Pattern.

Input the raw data and apply a regular expression to capture the desired value, such as an email address.

OR another straightforward approach is using Code by Zapier

  • In the code editor, write a script to parse the raw data and extract the desired value. For example, in JavaScript:

    const rawData = inputData.raw_payload; // Replace with your actual raw data variable const parsedData = JSON.parse(rawData); const email = parsedData.email; // Adjust based on your data structure return { email };

  • Ensure that the inputData.raw_payload references the raw data from your webhook trigger.


  • Author
  • Beginner
  • February 20, 2025

Thank you!!