Question

How to build trigger for updated user data?

  • 24 March 2022
  • 1 reply
  • 114 views

I’m updating user data in my API. how i can develop a new trigger while update user?


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 +9

Assuming this is a polling trigger - create a synthetic id field that is unique to the update, and make sure that your results are returned in reverse chronological order by update time.

 

A synthetic id could be object id + last updated timestamp, or object id + version number. 

Copy the original id to a new variable so it’s available to users to use in their Zaps

something like

const object_id = id;

id = `${object_id}-${timestamp}` ;

This will force Zapier’s deduper to recognize each update as a new event to process.

 

An alternative is to use REST Hooks. Then you just send a message to the hook for each update. Zapier applies no deduplication for hook messages.