Use this file to discover all available pages before exploring further.
If your in-product workflow builder or UI will allow users to configure their own triggers, use the JavaScript SDK or Triggers API to collect user input for trigger parameters such as a Salesforce Record Type or event filter conditions.
The SDK provides all available Trigger Parameters when you call paragon.getTriggers. You can also fetch the same schema directly from List Available Triggers.Each trigger has a parameters field that will provide a list of Paragon-formatted Input Types that can be rendered and exposed to your users.
{ "triggers": { "salesforce": [ { "type": "SALESFORCE_TRIGGER_RECORD_CREATED", "triggerModel": "POLLING", "title": "New Record", "description": "Trigger when a new record is created in Salesforce", "parameters": [ { "id": "recordType", "type": "ENUM", "title": "Record type", "required": true, "valuesSource": { "sourceType": "recordTypes", "dependencies": [] } } ] } ] }}
The id property of each input should be used as the key names of parameters when calling Subscribe to a Trigger. The values should be the input collected from your user.
Render each trigger parameter based on its type, and use paragon.getSourcesForActionInput to determine whether the input needs static or dynamic options.
For plain inputs, render directly from input.type. For example, TEXT, CODE, PASSWORD, and NUMBER can be rendered as text inputs; TEXTAREA can be rendered as a textarea; BOOLEAN_INPUT and SWITCH can be rendered as toggles.
For static dropdowns, getSourcesForActionInput returns a STATIC_ENUM source. Render these values directly in your dropdown.Some inputs require loading dynamic data from the user’s connected account. For example, the Salesforce: New Record trigger requires an Object selection to be made by your user:
For dynamic dropdowns, getSourcesForActionInput returns a DYNAMIC_DATA_SOURCE source. Pass the source to getFieldOptions, along with any dependency values required by source.refreshDependencies.
Conditional inputs can provide static supportedKeys or a dynamic supportedKeysSource for listing out available options for field.When the keys are dynamic, load them the same way you load dynamic dropdown options. Use supportedOperators to limit the operators available in your UI, and respect disableOrCondition if your filter builder supports OR groups.