Skip to main content

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.

 

 

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.

 


@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.