Skip to main content
Question

Dynamic resources / creates


Is there any way to create resources, triggers, creates, searches dynamically in a CLI app?

We have a standard database structure but customers can add custom fields and custom record types. The custom fields can be handled by Zapier but custom record types would need to be added dynamically after we have identified the customer when they initially log in.

 

 

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

BowTieBots
Forum|alt.badge.img+4
  • Zapier Expert
  • 82 replies
  • May 23, 2020

Hi @Norman Stevens,

You can build a dynamic field in CLI from the Input Designer of the Action Creation Screen.  Clicking Dynamic field will open a code window where you can put in your custom query.

 


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • May 24, 2020

@Norman Stevens - You could add a function in your inputFields array and use it to fetch a list of input fields from an API.

{
  // ...

  inputFields: [
    async (z, bundle) => {
      const response = await z.request({ /* ... */ })
      const fields = response.json
      return fields
    }
  ]
}

 


I know how dynamic fields work. What I wanted was dynamic record types.