Question

How to add create after search in CLI

  • 11 June 2021
  • 1 reply
  • 3 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.


1 reply

Userlevel 6
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. 

Reply