

# Mapping ServiceNow objects to the standard case in Amazon Connect Customer Profiles
<a name="mapping-servicenow-objects-standard-case"></a>

This topic lists which fields in ServiceNow objects map to fields in the standard case in Amazon Connect Customer Profiles.

## Servicenow-task object
<a name="servicenow-task-object"></a>

Following is list of all the fields in a Servicenow-task object. 
+ sys\$1id
+ active
+ activity\$1due
+ additional\$1assignee\$1list
+ approval
+ approval\$1history
+ approval\$1set
+ assigned\$1to
+ assignment\$1group
+ business\$1duration
+ business\$1service
+ calendar\$1duration
+ closed\$1at
+ closed\$1by
+ cmdb\$1ci.display\$1value
+ cmdb\$1ci.link
+ comments
+ comments\$1and\$1work\$1notes
+ company
+ contact\$1type
+ contract
+ correlation\$1display
+ active
+ correlation\$1id
+ delivery\$1plan
+ delivery\$1task
+ description
+ due\$1date
+ escalation
+ expected\$1start
+ follow\$1up
+ group\$1list
+ impact
+ knowledge
+ location
+ made\$1sla
+ number
+ opened\$1at
+ opened\$1by.display\$1value
+ order
+ parent
+ priority
+ reassignment\$1count
+ service\$1offering
+ short\$1description
+ sla\$1due
+ state
+ sys\$1class\$1name
+ sys\$1created\$1by
+ sys\$1created\$1on
+ active
+ sys\$1domain.global
+ sys\$1domain.link
+ sys\$1domain\$1path
+ sys\$1mod\$1count
+ sys\$1updated\$1by
+ sys\$1updated\$1on
+ time\$1worked
+ upon\$1approval
+ upon\$1reject
+ urgency
+ user\$1input
+ watch\$1list
+ work\$1end
+ work\$1notes
+ work\$1notes\$1list
+ work\$1start

## Mapping Servicenow-task to a standard case
<a name="mapping-servicenow-task-case"></a>

A subset of the fields in the Servicenow-task object map to the standard case in Customer Profiles. 

The following table lists which fields can be mapped from the Servicenow-task object to the standard case. 


| Servicenow-task source field | Standard case target field | 
| --- | --- | 
|  sys\$1id  | Attributes.ServiceNowTaskId  | 
|  opened\$1by.link  | Attributes.ServiceNowSystemUserId  | 
|  short\$1description  | Title  | 
|  description  | Summary  | 
|  status  | Status  | 
|  sys\$1created\$1by  | CreatedBy  | 
|  sys\$1created\$1on  | CreatedDate  | 
|  sys\$1updated\$1on  | UpdatedDate  | 

The Servicenow-task customer data from Servicenow is associated with an Amazon Connect standard case using the indexes in the following table. 


| Standard Index Name | Servicenow-task source field | 
| --- | --- | 
|  \$1serviceNowTaskId  | sys\$1id  | 
|  \$1serviceNowSystemId  | open\$1by.link  | 

For example, you can use `_serviceNowTaskId` and `_serviceNowSystemId` as an `ObjectFilter.KeyName` with the [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API to find a standard case. You can find the Servicenow-task objects associated with a specific profile by using the [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API with the `ProfileId` and `ObjectTypeName` set to `Servicenow-task`.

## Servicenow-incident object
<a name="servicenowincident-object"></a>

Following is a list of all the fields in a Servicenow-incident object. 
+ sys\$1id
+ business\$1stc
+ calendar\$1stc
+ caller\$1id.link
+ caller\$1id.value
+ category
+ caused\$1by
+ child\$1incidents
+ close\$1code
+ hold\$1reason
+ incident\$1state
+ notify
+ parent\$1incident
+ problem\$1id
+ reopened\$1by
+ reopened\$1time
+ reopen\$1count
+ resolved\$1at
+ resolved\$1by.link
+ resolved\$1by.value
+ rfc
+ severity
+ subcategory

## Mapping Servicenow-incident to a standard case
<a name="mapping-servicenowincident-case"></a>

A subset of the fields in the Servicenow-incident object map to the standard case in Customer Profiles.

The following table lists which fields can be mapped from the Servicenow-incident object to the standard case. 


| Servicenow-Incident source field | Standard case target field | 
| --- | --- | 
| sys\$1id  |  Attributes\$1ServiceNowIncidentId  | 
| caller\$1id.link  |  Attributes\$1ServiceNowSystemUserId  | 
| incident\$1status  |  Status  | 
| caller\$1id.link  |  CreatedBy  | 
| resolved\$1at  |  ClosedDate  | 
| category  |  Reason  | 

The Servicenow-incident customer data from the Servicenow object is associated with an Amazon Connect standard case using the indexes in the following table. 


| Standard Index Name | Servicenow source field | 
| --- | --- | 
| \$1serviceNowIncidentId  |  sys\$1id  | 
| \$1serviceNowSystemId  |  caller\$1id.link  | 

For example, you can use `_serviceNowIncidentId` and `_serviceNowSystemId` as a ObjectFilter.KeyName with the [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API to find a standard case. You can find the Servicenow-incident objects associated with a specific profile by using the [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API with the `ProfileId` and `ObjectTypeName` set to `Servicenow-incident`.