Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maguay
Created April 3, 2019 09:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maguay/7109e9f885304794852d1dd400dc4887 to your computer and use it in GitHub Desktop.
Save maguay/7109e9f885304794852d1dd400dc4887 to your computer and use it in GitHub Desktop.
Example Zapier REST hook Perform code
const recipe = {
id: bundle.cleanedRequest.id,
name: bundle.cleanedRequest.name,
directions: bundle.cleanedRequest.directions,
style: bundle.cleanedRequest.style,
authorId: bundle.cleanedRequest.authorId,
createdAt: bundle.cleanedRequest.createdAt
};
return [recipe];
@randall-coding
Copy link

randall-coding commented Jan 7, 2021

Not sure how I would send the data for it to show up like this. For example how would I send the id for it to show up as bundle.cleanedRequest.id? In the body? As a parameter?

@mkral
Copy link

mkral commented Jan 26, 2021

@randall-coding You post the webhook url with id in the body json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment