- Customize when to notify the proper on-call team about Salesforce Service Cloud cases and route exception cases.
- Create and/or update the Service Cloud case with relevant information as soon as there’s a PagerDuty update such as an acknowledgement, resolution, reassignment, etc.
- Keep your Customer Service team up-to-date with synced notes between PagerDuty and Salesforce Service Cloud so they can provide relevant updates to customers.
This guide outlines configuration for the Salesforce Service Cloud v1 integration.
Looking for a Different Version?
The following integrations are also available:
- New Salesforce cases and their updates are sent to PagerDuty, where case information is evaluated against your sets of predefined rules. If the evaluation criteria is met, PagerDuty will perform the action that you have defined.
- PagerDuty can also send information to Salesforce Service Cloud, where you can define the evaluation criteria against the updates made in PagerDuty and select an action to be performed in Salesforce Service Cloud.
In Salesforce Service Cloud:
- Permissions to Install Salesforce Managed Package applications.
- A Salesforce Professional, Unlimited or Enterprise edition, which can allow Apex classes to be run from a Managed Package.
- Ensure that API Access is enabled on your Organization. Salesforce Organizations in Trial Mode will normally not have API access enabled.
- The Salesforce integration is only available to accounts on Business or Digital Operations plans. Please contact our Sales Team if you would like to upgrade to a plan featuring the Salesforce integration.
- An Admin, Global Admin or Account Owner base role is required for configuration. If you're not sure what role you have, or if you need your permissions adjusted, visit our sections on Checking Your User Role or Changing User Roles.
- Navigate to the Apps & Add ons and select API Access and click Create New API Key.
- Enter a description, e.g. “Salesforce API Key” and click Create Key.
- On the next screen, copy the API Key and paste it in a safe place for future use.
- In the Salesforce AppExchange, search PagerDuty and install the app.
- Once installed, in your Salesforce Service Cloud account, click the on the right hand side and select Setup.
- In the Setup console, search for and click Named Credentials.
- Click the New Named Credential button and enter the following information in the fields on the next screen:
e. Identity Type:
f. Authentication Protocol:
e. Password: Paste the PagerDuty API Key (generated in step 4 of the In PagerDuty section, above).
f. Call Out Options:
- Generate Authorization Header: UNCHECK
- Allow Merge Fields in HTTP Header: CHECK
- Allow Merge Fields in HTTP Body: UNCHECK
Click Save to continue.
- Click the App Launcher on the left hand side, search and then click PagerDuty Configuration.
- In the SUMMARY tab, if the Named Credential was properly configured, the Connection should show an OK message in green text.
- Next, select the OBJECT MAPPINGS tab:
a. Business object mapped to PagerDuty Incident: Select the business object that you would like to build the rules off of. Note: At this time, only Case objects are supported, and we will use a Case object as an example in the following steps. We currently do not support Custom Objects.
b. Incident Title Field: Select the business object case field that you would like to be mapped to PagerDuty's incident title. In this example, we have chosen Subject.
c. Incident Description Field: Select the business object case field that you would like to be mapped to PagerDuty's incident description body. In this example we have chosen Description.
d. Integration User Email: Provide the email that belongs to the integration user who will be creating and updating the incidents in PagerDuty.
e. Sync Salesforce Comments to PagerDuty Notes (optional): You can sync the Salesforce Service Cloud Case Comments to PagerDuty Notes, but please be aware that syncing between the two may consume your API request limits in Salesforce Service Cloud.
Click Save to continue.
- Next, select the RULESETS tab. This is where you will build the rules that apply to your business. Click the Add Ruleset button on the right, enter a Ruleset Name and click Save. Click the ruleset name and click the Add Rules button. Enter a Rule Name, click Save and then click the name of the rule. Each rule will ask for conditions that should be met prior to performing the actions specified in the latter part of the rule definition.
By default, Rulesets are disabled upon creation. You will need to enable this ruleset once you're ready to test and use it.
Run rule on selections:
- Case create or update: Define the Salesforce Service Cloud field conditions that need to be satisfied for the PagerDuty package to run and perform the specified action.
- PagerDuty incident create or update: Define when PagerDuty should send updates to Salesforce Service Cloud about incident changes made by other sources such as an acknowledge, resolve, reassignment, etc. This option will need additional configuration within PagerDuty to be able to authenticate and send updates to Salesforce Service Cloud. Steps are outlined in the next section.
- In Salesforce Service Cloud: Retrieve the Security Token of an integration user by navigating to their Profile and Resetting the Security Token.
- In PagerDuty: Navigate to Configuration, select Services, find and then click the service where you would like to add the Salesforce Service Cloud extension. Select the Integrations tab and click New Extension.
- In the Extension Type dropdown select Salesforce Service Cloud, enter a name in the Name field, and then enter the Integration User's Email Address, Password and Security Token (generated in step 1 above).
- Optional: For the Salesforce RestResource URL field, leave this blank if using the PagerDuty integration from Salesforce AppExchange. This should only be provided if a custom, in-house integration is being built.
- Optional: The Use sandbox account checkbox should be enabled if the Salesforce environment is a sandbox (test) environment.
Click Save to continue.
In Salesforce Service Cloud, ensure that you’ve built rules that specify what should happen to the case object and fields when PagerDuty sends an update back to Salesforce Service Cloud.
- Navigate back into Salesforce Service Cloud's Rulesets tab, and create a new ruleset and/or rule.
- Specify PagerDuty Update and select the conditions that best fit the action you would like to perform.
After specifying the condition, specify the action you would like to be performed such as Setting the Case Value.
Can you automatically create an incident in PagerDuty once a Salesforce Case meets certain criteria?
Yes. After specifying your evaluation conditions, select that you want to “Create an incident on a service in PagerDuty”, and select a relevant service to notify.
If I’m a Managed Service Provider, or would like to create new cases in Salesforce based on information I get from other integrations, can I do that with this integration?
Yes. When you’re defining the rule, make sure you select On PagerDuty Update instead of Case create/update, specify what conditions to look for on a PagerDuty update, and what you would like Salesforce to do when it meets that criteria. For example, if you want to automatically create a Salesforce Case when a PagerDuty Incident is created on Service “XYZ”, you would have a Ruleset that looks like the following:
Make sure you also use Set Case field value for ALL required fields in your Salesforce Case Object.
Updated 10 months ago