Step 3 - Create ticket with dynamic value
Learn how to create a new Zendesk ticket with a select input with dynamic sources.
Workflow that creates a ticket with a select input: Create ticket
The usage of select fields in manual workflows is explained in this step. The select source is configured with dynamic values to facilitate the process.
Summary
How it works
- Creates a ticket in Zendesk with a select input with a dynamic source.
Requirements
- Zendesk connection
Inputs
- Subject: Type → text field, Mandatory → enabled
- Requester: Type → single select field, Options → List of Zendesk users
Outputs
- Markdown (text)
How to configure this workflow
Continued from Step 1 - Create a simple ticket.
1. Add a new action
Add a new input.
requester
.Select single select input type and update its label and ID.
On OPTIONS section, select Dynamic source option.
Select Integer in source type field since a Zendesk user ID is an integer value.
On SOURCE MAPPING section, add a new source and select Zendesk integration from the opening list.
On the opening panel, select List users action from the list of Zendesk actions.
Select your connection.
Enter source mapping options as below:
Display | Identifier |
---|---|
{{response.body.users.map(u => u.name)}} | {{response.body.users.map(u => u.id)}} |
2. Update your action (Create ticket from Zendesk integration)
Find
Create ticket
action, go to ACTION INPUTS section and navigate to Requester field.Select Dynamic option from the gear icon right next to this field and enter
{{input.requester}}
. Inside double curlies{{ }}
you can reference to your input values by typinginput.
and then the ID of your input. For a select input,{{input.requester}}
is evaluated as the the identifier value of the selected option.
3. Save your workflow and test it.
Click Apply at top right corner to save your workflow.
You can run it in canvas mode or run it in Slack.
To run your workflow in Slack, call Actioner from shortcuts and then select your workflow.
Enter the subject and select requester and click Create ticket.