Lab: Create Service Request
Lab: Create Service Request
Summary
Create an integration to create an incident in Service Cloud.
Integration
o Type: Basic Map Data
o Name: Create Service Request
o Package: hol
Trigger
o Connection: ServiceRequestSOAP
o Name: CreateServiceRequest
o Operation: create
Target Invoke
o Connection: ServiceCloud
o Name: CreateIncident
o Operation Mode: Single Operation
o Operation Type: CRUD : Create
o Selected Business Object: Incident
Map Request
o ServiceRequest.Subject -> Incident.Subject
o ServiceRequest.Customer -> Incident.IncidentCustomFields.ICSPCS.ContactEMail
o ServiceRequest.Product -> Incident.IncidentCustomFields.ICSPCS.Product
o ServiceRequest.Status -> Incident.StatusWithType.Status.Name
o ServiceRequest.ClosedPCS -> Incident.IncidentCustomFields.ICSPCS.SynchedPCS
o “Tom Riddle” -> Incident.PrimaryContact.Name
Enrich Response
o Connection: ServiceCloud
o Name: Create Incident
o Operation Mode: Single Operation
o Operation Type: CRUD : Get
o Selected Business Object: Incident
o Processing Option: Get All Names
Map Enrichment Request
o Incident.ID.id -> Incident.ID.id
Map Enrichment Response
o Incident.ID.id -> ServiceRequest.ID
o Incident.IncidentCustomFields.ICSPCS.ContactEMail -> ServiceRequest.Customer
o Incident.IncidentCustomFields.ICSPCS.SynchedPCS -> ServiceRequest.ClosedPCS
o Incident.IncidentCustomFields.ICSPCS.Product -> ServiceRequest.Product
o Incident.ReferenceNumber -> ServiceRequest.ReferenceID
o Incident.StatusWithType.Status.Name -> ServiceRequest.Status
o Incident.Subject -> ServiceRequest.Subject
Create Tracking
o ServiceRequest.Subject (Primary)
o ServiceRequest.Customer
o ServiceRequest.Product
Sample Payload
<typ:CreateRequest>
<typ:ServiceRequest>
<typ:Subject>Mikey Mouse ears have fallen off</typ:Subject>
<typ:Summary>The ears of my Mickey Mouse mug have fallen
off</typ:Summary>
<typ:Customer>[email protected]</typ:Customer>
<typ:Product>Mickey Mouse Mug</typ:Product>
<typ:Status>Unresolved</typ:Status>
<typ:ClosedPCS>false</typ:ClosedPCS>
</typ:ServiceRequest>
</typ:CreateRequest>
Add Trigger
In the connections panel choose ServiceRequestSOAP connection.
If it is not visible then type SOAP into the search bar and click magnifying glass .
If it is not visible then type Service into the search bar and click magnifying glass .
Type Tom Riddle in the name field and then save and close the field mapping.
Choose the Fetch All Names option to cause RightNow to expand references to include actual
values. Then close the processing options window and move on in the wizard.
Testing
From the integration screen.
If not already open expand the new project and open the generated request.
Use the following sample test message or provide your own data. Do not provide the ID and
ReferenceID fields as these will be generated by Service Cloud.
<typ:CreateRequest>
<typ:ServiceRequest>
<typ:Subject>Mikey Mouse ears have fallen off</typ:Subject>
<typ:Summary>The ears of my Mickey Mouse mug have fallen off</typ:Summary>
<typ:Customer>[email protected]</typ:Customer>
<typ:Product>Mickey Mouse Mug</typ:Product>
<typ:Status>Unresolved</typ:Status>
<typ:ClosedPCS>false</typ:ClosedPCS>
</typ:ServiceRequest>
</typ:CreateRequest>