Declaring Incidents
The simplest way to declare incidents within Salesforce is to add a button within any given page layout that links to inc.new. This will take the user to your default incident declaration form where they’ll be able to then declare an incident.Pre-filling the declaration form
You might want to default to a certain incident type or automatically tag a customer that’s affected by an incident e.g. I could have a declare incident for customer button within the Account page layout You can do this by passing various values within the querystring of the URL in the button e.g. inc.new?name=hello-world would launch an incident declare form with the name of the incident already set to “hello-world”. You can find a more extensive article on exactly what you can pass within the querystring hereDeclaring an Incident for a specific customer
It’s fairly common to expose an Affected Customer(s) field when declaring an incident. This not only helps with tracking who to provide updates to but can also provide additional context to responders and trigger automations using our Catalog. Our existing Salesforce integration pulls a list of Accounts from your Salesforce instance. This catalog type can then be used as the type of a custom field e.g. Affected Customer(s) and exposed within your incident declaration form. You can then pre-fill this when declaring an incident from a specific salesforce account. When pre-setting a custom field value that has a catalog type, you’ll need to send theexternal_id or an alias of a catalog entry for that type. You can find those values by heading into any given catalog entry within the UI. The accounts created from the Salesforce — Catalog integration will all have an external_id equivalent to that account’s Account Id in Salesforce. An example formula you could therefore have within a Button on an Account page might look like this:
Viewing Incidents
You may also wish to provide greater visibility for live incidents within Salesforce and potentially report on incident data within Salesforce. This requires a little more effort than that needed to add the declare incident button but can be done in a couple of ways:Representing incidents in Salesforce
We’d recommend first creating a new custom object to represent an incident.io Incident. At a minimum you’ll probably want the following fields:| Field Name | Field Type |
|---|---|
| Name | Text() |
| Status | Picklist() - Options should align with your incident statuses that can be configured within your incident lifecycle |
| Summary | Text Area (Long) |
| Affected Account | Lookup(Account) |