Hi everyone,
I would like to know if it is possible to have an example of trigger coded in Python just to understand the logic. Thanks in advance
Hi everyone,
I would like to know if it is possible to have an example of trigger coded in Python just to understand the logic. Thanks in advance
Hi
Check out these help articles for some guidance:
https://zapier.com/help/create/code-webhooks/python-code-examples-in-zaps
https://zapier.com/help/create/code-webhooks/javascript-code-examples-in-zaps
Thanks
The only way I could think a ‘code block’ could act as a trigger would be if it was listener for a webhook from another event.
Can you elaborate more on the conditions you are checking and the behavior you are looking for?
Thank you for your feedback.
Here is an example of a context that illustrates what I want to do. Through an API I have the ability to access the child and parent tables. If a field in the parent table is changed, I would like to perform a set of tasks on the corresponding child fields.
How to set up a trigger by code considering that it is possible to have several simultaneous changes for the same row in the parent table?
Thanks in advance for your feedback
Hey
Does the API have an endpoint that could be polled to check for an updates to the parent table? Or do they support webhooks for sending out data?
What I’m thinking here is that you could use a Webhook trigger in your zap and set it to either a GET poll or a Catch Hook trigger, depending on the API. Using this trigger zap could poll the endpoint asking for updated data or wait to receive the data at the catch hook URL we provide.
From there, you could set the next step in the zap to be a Code step using Python and perform the coding work you need on the data we received at the trigger.
For more info on Webhooks, check out this page: https://zapier.com/help/doc/how-get-started-webhooks-zapier
If you’re 100% looking to keep everything in a trigger, it would be recommended to check out our development platform and build your own private integration for that trigger: https://zapier.com/platform
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.