Loading...
Loading...
Loading...
After you configure the routing of Salesforce emails in Salesforce, create a process in Process Builder to route Salesforce emails through Genesys Cloud for Salesforce. With Process Builder, you define a process and determine the criteria for when the process is run.
A basic process for routing Salesforce emails only requires two fields in the Immediate Actions component: Queue (or Inbound Email Flow) and Salesforce Object ID (for screenpop). You can use more fields in Process Builder for advanced customization.
Click image to enlarge.
Criteria for Executing Actions is automatically set to Conditions are met.
The API Name is Incoming.
Operator is automatically set to Equals. Type is automatically set to Boolean.
The API Name is ParentId.
Type is automatically set to Boolean. Value is automatically set to False.
Click image to enlarge.
You can use other fields in Process Builder to cause screen pops, to modify interaction details, or to add data to the activity records in Salesforce. See Advanced customization tab.
Type is automatically set to Picklist.
The API Name for the field is ParentId.
Click image to enlarge.
The process is now ready to use.
For a more robust process, you can use more than the two required fields in the Immediate Actions component. Some of the fields available in Process Builder map to default and custom attributes. (See following table.)
Default attributes map automatically to interaction details and, if you map activity fields in Salesforce, to activity records. For more information, see Map interaction attributes to Salesforce activity fields.
Custom attributes require configuration. For custom attributes to appear in interaction details and interaction logs, first add them to the Customize Interaction Details and Activity Field Mapping sections under Client Settings in Salesforce. For more information about Client Settings, see Managed package settings.
The following example shows the use of required fields, default attributes, and custom attributes to route Salesforce emails.
Click image to enlarge.
The following table describes the fields used in the example process. (*Inbound Email Flow does not appear in the example process. Use either Queue as in the example or Inbound Email Flow.)
| Field | Type | Value | Description |
|---|---|---|---|
| Queue | Picklist | CustomerServiceQueue | Required. Name of the queue in your Genesys Cloud organization that you want to receive interactions. Maps to Call.QueueName in interaction details. Note: Use either Queue or Inbound Email Flow. If you use both, the integration defaults to Queue. |
| *Inbound Email Flow | Picklist | RouteEmail | Required. Name of the Architect inbound email flow in your Genesys Cloud organization that you want to route Salesforce emails through. Note: Use either Queue or Inbound Email Flow. If you use both, the integration defaults to Queue. |
| Salesforce Object ID (for screenpop) | Reference | [EmailMessage].ParentId | Required. ID of the Salesforce object that you want to screen pop when the interaction alerts. |
| Attributes | Formula | 'CaseNumber=Case: ' + [EmailMessage].Parent.CaseNumber + ',contactEmailAddress=' + [EmailMessage].ToAddress | Custom attribute that adds data to interaction details (for example, CaseNumber) and to activity records in Salesforce (for example, contactEmailAddress). Format: 'Name1=Value1,Name2=Value2'." Note: Because CaseNumber and contactEmailAddress are custom attributes, you must first add Participant.{CustomFieldName} to the Customize Interaction Details and Activity Field Mapping sections under Client Settings. For more information about Client Settings, see Managed package settings. |
| Display Address | String | john.smith@customer.com | Remote email address for the active interaction added to interaction details when an interaction alerts. |
| Remote Name | String | John Smith | Remote name for the active interaction added to interaction details when an interaction alerts. Maps to Call.RemoteName in interaction details. |
| Title | String | Warranty Question | Email subject line added to the interaction details when an interaction alerts. Maps to Email.Subject in interaction details. |
| Skills | MultiPicklist | Cellphone repair; Warranties | Skills in your Genesys Cloud organization associated with agents who you want to receive interactions. |
| Language | Picklist | English – Spoken | Language skill in your Genesys Cloud organization associated with agents who you want to receive interactions. |
The example routes Salesforce emails to the CustomerServiceQueue. Agents in this queue who are assigned the skills ‘Cellphone repair’ and ‘Warranties’ and the language ‘English – Spoken’ in Genesys Cloud receive alerting interactions.
When the interaction alerts, the field Salesforce Object ID (for screenpop) causes a page with the ID 500360000015OCJ to screen pop in Salesforce.
The fields Title (Warranty Question) and Remote Name (John Smith) are default attributes that appear in the interaction details.
The field DisplayAddress (john.smith@customer.com) is an attribute that we mapped in the Customize Interaction Details section under Client Settings. For more information about Client Settings, see Managed package settings.
The field Attributes uses custom attributes CaseNumber and contactEmailAddress to add Case: 000149 to the interaction details and to write the email address to the activity record in Salesforce.
To use these attributes with an Architect flow, see About Architect.
For more information, see Configure the routing of Salesforce emails and About Routing of Salesforce Emails.
For more information about the integration, see About Genesys Cloud for Salesforce.
Get user feedback about articles.