Best answer

How to link a create action to a search action in CLI

  • 11 June 2021
  • 1 reply
  • 153 views

I can see in the UI documents that you can link a create action to a search actions so if the search returns nothing it automatically runs the create action. 

I can’t see anything on how to add that vis the CLI inteface.

Can you tell me hoe to do it or point me at the documentation that will tell me.

icon

Best answer by Zane 11 June 2021, 16:03

View original

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

Best resource is to look at the schema for that configuration: https://zapier.github.io/zapier-platform-schema/build/schema.html#searchorcreateschema

 

And then in the app schema how to include that in your app definition: https://zapier.github.io/zapier-platform-schema/build/schema.html#appschema

 

In short, create a search. Create an action. Create a searchorcreate “wrapper” to tie those two together. Add all of those to your “index” to make them available to users in the Zap editor.

 

Let us know if that doesn’t get you up and running.