Attach Image to Ticket (Zendesk) Data Flow Template
Last updated
Last updated
This Data Flow template is made up of four Data Operations that allow app builders to add an image to an existing ticket in Zendesk. This is achieved by connecting with the Zendesk integration and passing data to this Data Flow.
In Connection Builder, Data Flow templates can be found with pre-populated sample data. However, to meet the requirements of their Journey, app builders should perform the necessary adjustments, such as adding other Data Ops.
Bear in mind that in order to use Zendesk as a datasource, credentials must be set in Configuration Builder > Integrations to connect the corresponding account.
This Data Flow contains six parts:
The Start pane keeps track of the inputs required by the Data Flow.
Service: no service selected
Method: GET - to retrieve data
URL: image_url - URL to be accessed by this request
Allow non-compliant HTTP headers: box unchecked
Content-Type: “application/json”
Headers: no parameter set
Query Parameters: no parameter set
Form Parameters: no parameter set
Had paging?: box unchecked
Run Results: AirData Variables of type Any that automatically created to hold the results of this Operation.
image_result
image_raw_result
image_request
Service: Zendesk
Method: POST - to submit data
URL: insert your Zendesk support URL to be accessed by this request
Allow non-compliant HTTP headers: box unchecked
Content-Type: “application/binary”
Headers: HTTP Parameter to request additional information
Body: image_raw_result.body
Query Parameters: no parameter set
Form Parameters: no parameter set
Had paging?: unchecked
Run Results: AirData Variables of type Any that automatically created to hold the results of this Operation.
upload_result
upload_raw_result
upload_request
Service: Zendesk
Method: PUT - to replace the current representation with the requested payload on the previous data operation
URL: insert your Zendesk support URL to be accessed by this request
Allow non-compliant HTTP headers: box unchecked
Content-Type: “application/json”
Headers: HTTP Parameter
Body: comment to be added to the ticket
Query Parameters: no parameter set
Form Parameters: no parameter set
Had paging?: box unchecked
Run Results: AirData Variables of type Any that automatically created to hold the results of this Operation.
zendesk_result
zendesk_raw_result
zendesk_request
Transform Expression: Airscript expression to check for errors
Output Format: Variable
Type: Boolean
Run Results: ticket_closed output Variable of type Boolean that is automatically created to hold the results of this Operation.
The End step is where variables from the Data Flow can be used as an output..
Sample Return Value: ticket_closed of type Boolean
Allow app builders to attach an image to a ticket in Zendesk.