Question

Dynamic resources / creates

  • 23 May 2020
  • 3 replies
  • 1412 views

Userlevel 1

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.

 

 


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

Userlevel 4
Badge +4

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.

 

Userlevel 7
Badge +11

@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
}
]
}

 

Userlevel 1

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