Question

Convert JSON data from Webhook into individual items

  • 17 March 2023
  • 1 reply
  • 121 views

Userlevel 1

I get the raw body from the webhook that looks like this in Zapier:

raw_body
{"employees":[{"changedFields":["Home Email"],"fields":{"Home Email":"test@icloud.com"},"id":"239"}]}
headers__content_length
111
headers__content_type
application/json
headers__http_content_length
111
headers__http_cloudfront_viewer_country
IE
headers__http_x_forwarded_port
80
headers__http_via
2.0 bd3c2afa75612aa52a66a52d84cc0c6e.cloudfront.net (CloudFront)
headers__http_x_forwarded_host
hooks.zapier.com
headers__http_cloudfront_viewer_asn
16509
headers__http_cloudfront_is_desktop_viewer
true

i’d like to take the ‘employees’ json and have them as selectable fields: Home Email, Id.

Is there an easy way to do that through javascript?


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

1 reply

Userlevel 7
Badge +14

Hi @Dorbs 

Good question.

You’ll need to use a Code step: https://zapier.com/apps/code/help