Skip to main content
Question

How to execute code based on authentication test URL response?


  • Beginner
  • 2 replies

I want to execute some lines of code based on the response of authentication test url. Think like creating a flag with True / False and thinking to use it inside any trigger / action etc.

Is it possible in Zapier CLI ?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

mzsadiek
Forum|alt.badge.img+5
  • Zapier Expert
  • 89 replies
  • January 5, 2022
d33p wrote:

I want to execute some lines of code based on the response of authentication test url. Think like creating a flag with True / False and thinking to use it inside any trigger / action etc.

Is it possible in Zapier CLI ?

The authentication with the API should work before configuring any trigger/action. However, you can pass a trigger if nothing is found, for example. You can see this in some other Zapier integration triggers, they have a checkbox to give even if nothing is found, so that true/false results can be used in further steps.


  • Author
  • Beginner
  • 2 replies
  • January 5, 2022
mzsadiek wrote:
d33p wrote:

I want to execute some lines of code based on the response of authentication test url. Think like creating a flag with True / False and thinking to use it inside any trigger / action etc.

Is it possible in Zapier CLI ?

The authentication with the API should work before configuring any trigger/action. However, you can pass a trigger if nothing is found, for example. You can see this in some other Zapier integration triggers, they have a checkbox to give even if nothing is found, so that true/false results can be used in further steps.

Can you provide link of any integration with codes ?


  • New
  • 3 replies
  • January 6, 2022
d33p wrote:

I want to execute some lines of code based on the response of authentication test url. Think like creating a flag with True / False and thinking to use it inside any trigger / action etc.

Is it possible in Zapier CLI ?

you can use computed field to save that flag value to authData on authentication test request and can use that value to any trigger or action in the app.