- 19 Jun 2024
- 3 Minutes to read
- Print
- DarkLight
- PDF
ConnectWise PSA™ add Initial Descriptions to Alert Notifications
- Updated on 19 Jun 2024
- 3 Minutes to read
- Print
- DarkLight
- PDF
This guide will walk you through the process of obtaining the initial description from ConnectWise PSA™ to include in your alert notifications. The goal is to retrieve the initial description and incorporate it into the notification. ConnectWise's API does not automatically provide the initial description, so we need to manually retrieve it for more detailed incident information. Our solution involves executing a GET call for the initial description whenever an alert is created, and then using a workflow to send that initial description.
Create a Custom Field to Store Initial Descriptions
Go to Configuration and navigate to Administration.
Click on Standard Alert under Custom Alert Fields.
Click on Add.
Name the field "Initial Description" or "CWM Description".
Set the data type to long string.
Select a group if you have one for your CWM custom fields.
Click Submit to save.
Configure Outbound Integration
Go to Configuration and select Integrations.
Scroll down to Outbound Integrations.
Create a new outbound by clicking Add Outbound or edit the generic service desk template:
Name it "ConnectWise Manage Manual Methods" or "CWM API".
Set the Security Type to none.
Click Submit to save.
Create an API Call to Retrieve the Initial Description
Click on Add Method.
Name the Method: "Get Initial Description".
Set the Request Method to: "GET".
Input the URI:
https://<your-subdomain>.connectwisedev.com/v4_6_release/apis/3.0/service/tickets/<<MessageThread.SourceIdentifier>>/notes
Select the Checkbox: "Update Alert Fields".
Request Data: No request data is needed.
Response Data: Copy and paste the following into the response data field:
[{"text":"<<Attribute.Initial Description>>"}]
Ensure you input the exact name of the custom field you created (found in the list of options on the right). You can drag and drop it into the response data.
Add Headers:
ClientId: Format: "ClientId" (C and I are uppercase, the rest are lowercase with no spaces). The key will be provided by support.
Authorization: Use the CW API member public & private key to generate the base 64 key.
Format:
companyid+publickey:privatekey
Use Base64 Encode to generate this value.
Input the string to the header value including "Basic". Example: Basic <encoded key>
Save the Method.
Clone the Escalation Policy for ConnectWise Integration
Navigate to Configuration and then Escalation Policies.
Open the relevant escalation policy you are currently using for the inbound ConnectWise integration (retrieving the ticket).
Clone the Escalation Policy by clicking on Clone in the top right corner.
Add a Name for the cloned escalation policy and click Submit.
Important Note: Cloning the escalation policy ensures clarity and separation, preventing potential issues with workflow loops by avoiding the use of the same escalation that triggers the workflow within the workflow.
Create a Workflow to Send the Initial Description
Navigate to Configuration and then Workflows.
Add a New Workflow:
Click on Add Workflow.
Name the workflow “Send alert with initial description”.
Set the Type to Alert and the Alert Type to Standard Alert.
Click Submit.
Define Matching Criteria:
Click on Add to the right of Match All.
From the dropdown, select the custom field we created.
Set the condition to "is changed".
Click the green checkmark to save.
Add an Action:
Click Add Action and select Send Message for the action.
Select the cloned escalation policy from the Escalation Policy dropdown.
Select the on-call group from the Groups dropdown.
Customize the Message:
In the message text area, drag and drop the custom field created for the initial description.
Customize the message as desired.
Save and Enable the Workflow:
Click on Update in the top right corner and enable the workflow.
Click the green check mark to save.
Create a Workflow to Trigger Get Initial Description Method
Navigate to Configuration and then Workflows.
Add a New Workflow:
Click on Add Workflow.
Name the workflow “Get Initial Description”.
Set the Type to Alert and the Alert Type to Standard Alert.
Check the box next to Scheduled and leave Recurrence empty.
Click Submit.
Define Matching Criteria:
Click on Add to the right of Match All.
From the dropdown, select AlertStatus
Set the condition to "is" and the value to “Open”
Click the green checkmark to save.
Click on Add to the right of Match All.
From the dropdown, select TimeFromBegining(Minutes)
Set the condition to "is" and the value to “1”
Click the green checkmark to save.
Add an Action:
Click Add Action and select Outbound Service Notification for the action.
Select the API call/method we created to get the initial description from the Web Method dropdown.
Click Submit to save
Save and Enable the Workflow:
Click on Update in the top right corner and enable the workflow.
Click the green check mark to save.
Configure the Escalation Policy to Use Workflows
Navigate to Configuration and select Escalation Policies.
Open the original escalation policy (not the cloned one).
Expand the Automation tab.
Add Workflows:
Click the Add Workflow button and select the “Send Alert With Initial Description” workflow, then save.
Click the Add Workflow button again and select the “Get Initial Description” workflow, then save.
Explanation: This setup ensures that when an alert is created, it first retrieves the initial description and then uses the workflow to send the alert using the cloned escalation policy.
Note: If you want to notify only through specific methods like Teams and push notifications, ensure that the cloned escalation policy includes these methods.
By following these steps, you will successfully integrate initial descriptions from ConnectWise PSA™ into your alert notifications.