The final configuration step on the ServiceNow side for your Freshdesk service integration is to add a script action. Script actions are server-side scripts triggered by events that can modify configuration items in your instance. The script action that you will need to add will create an outbound message for any incident records that have attachment data included, thus ensuring that any attachments you have created in ServiceNow are successfully shared out to your Freshdesk instance.
Prerequisites
You will first need to create a ServiceNow dynamic share for Freshdesk.
You will also need to create custom ServiceNow outbound table map fields for Freshdesk and update required ServiceNow transform map field scripts for Freshdesk.
Procedure
To add a script action for attachment.uploaded, follow these steps:
Log into your ServiceNow instance and navigate to System Policy > Events > Script Actions or simply type and then select Script Actions in the Filter Navigator on the upper left-hand side of the screen.
Click New to create a new script action.
In the resulting Script Action form, type Perspectium Attachment (Freshdesk) as the Name. Then, select attachment.uploaded from the Event name dropdown.
Check the Active box. Then, add the following script in the scripting window:
pspShareUploaded(); function pspShareUploaded() { |
Click Submit to finish creating your script action.
Next steps