Create Record
Description
FreshDesk: Create Record step creates a FreshDesk record.
Reference: To check the Field Value type required for the specified Field Name supported for the given Form Name, use the following links:
https://developers.freshdesk.com/api/#filter_tickets
https://developers.freshdesk.com/api/#create_ticket
Configurations
No. | Field Name | Description |
---|---|---|
Configuration | ||
1 | Step Name | Specify the name of the step. This name has to be unique in a single workflow. |
Connection: | ||
2 | Base URL | Specify the base URL of the FreshDesk cloud instance. For example, https://XXXXX.freshdesk.com . The field data type is String. This field is mandatory. |
3 | Accept value as variable/static | Leave checkbox unchecked to accept API Key value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for API Key field to appear as text box. |
4 | API Key | Specify the API Key to authenticate FreshDesk cloud instance. The field data type is String. This field is mandatory. |
5 | Test Connection | Verifies whether the connection is established or not. Note: For the purpose of verification, fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. The Test Connection button will only work with static (hardcoded) values and environment variables. |
Input Tab: | ||
Input Fields | ||
1 | Form Name | Specify the name of the form to create a specific record. The field data type is String. This field is mandatory. |
2 | Accept Fields As JSON | You can select the checkbox, if required. - If the Checkbox is selected, the ‘JSON‘ field will be used to create the record. - If the checkbox is not selected ‘Table Fields’ will be used to build the JSON to create the record. The field data type is Checkbox. This field is mandatory. |
3 | JSON | Provide JSON in a valid format to create the record. For the JSON sample, see Annexure. |
Table Fields: | ||
1 | Variable Field Name | Specify the value as a field or variable. |
2 | Static Field Name | Click the cell in the input table, fields associated with the form name will get populated. |
3 | Field Value | Specify the value of the respective field associated with the field name. The field data type is String. This field is mandatory. |
4 | Field Data Type | Specify the data type of the respective field associated with the field name. Allowed values: 'string', 'number', 'array of objects', 'array of strings', 'datetime','Integer', 'boolean', 'array of hashes', 'array', 'date'. |
Output Fields: | ||
1 | Record ID | Holds the ID of the record created in the FreshDesk cloud instance. Default value: RecordID |
tip
The user must be authorized to access the specified form name.
Annexure
JSON sample syntax format
{
"field1": integerValue1,
"field2": "stringValue2",
"field3": numberValue3,
"field4": {
arrayValue1,
arrayValue2
},
"field5": [
"arrayOfHashKey1": arrayOfHashValue2
],
"field6": [
arrayOfObjectValue1,
arrayOfObjectValue2
],
"field7": [
"arrayOfStringValue1",
"arrayOfStringValue2"
],
"field8": "booleanValue8",
"field9": "dateValue9",
"field10": "dateTimeValue10"
}
Sample JSON
{"type":"Problem","description":"Test Create Ticket...","subject":"RPA Support","email":"tom@outerspace.com","priority":1,"status":2,"cc_emails":["ross@freshdesk.com","diana@freshdesk.com"],"due_by": "2021-10-09T13:11:43Z","fr_due_by": "2021-10-09T13:11:43Z""custom_fields":{"cf_custom_ticketsubject":"RPA"}}
{"type":"Problem","description":"Test Create Ticket..."}
{"email":"tom@outerspace.com","priority":1}
{"cc_emails":["ross@freshdesk.com","diana@freshdesk.com"]}
{"fr_due_by": "2021-10-09T13:11:43Z", "custom_fields":{"cf_custom_ticketsubject":"RPA"}}