

# Mapping Salesforce objects to the standard asset in Customer Profiles
<a name="mapping-salesforce-objects-to-asset"></a>

This topic lists which fields in Salesforce objects map to fields in the standard asset object in Customer Profiles. 

## Salesforce-Asset object
<a name="salesforceaccountobject-asset"></a>

Following is a list of all the fields in a Salesforce-Asset object. 
+ Id
+ ContactId
+ AccountId
+ ParentId
+ RootAssetId
+ Product2Id
+ ProductCode
+ IsCompetitorProduct
+ CreatedDate
+ CreatedById
+ LastModifiedDate
+ LastModifiedById
+ SystemModstamp
+ IsDeleted
+ Name
+ SerialNumber
+ InstallDate
+ PurchaseDate
+ UsageEndDate
+ LifecycleStartDate
+ LifecycleEndDate
+ Status
+ Price
+ Quantity
+ Description
+ OwnerId
+ AssetProvidedById
+ AssetServiceById
+ IsInternal
+ AssetLevel
+ StockKeepingUnit
+ HasLifecycleManagement
+ CurrentMrr
+ CurrentLifecycleEndDate
+ CurrentQuantity
+ CurrentAmount
+ LastViewedDate
+ LastReferencedDate

## Mapping a Salesforce-Asset object to a standard asset
<a name="mapping-salesforceaccountobject"></a>

A subset of the fields in the Salesforce-Asset object map to the standard asset object in Customer Profiles. 

The following table lists which fields can be mapped from the Salesforce-Asset object to the standard asset. 


| Saleforce-Asset source field | Standard asset target field | 
| --- | --- | 
|  Id  | Attributes.sfdcAssetId  | 
|  ContactId  | Attributes.sfdcContactId  | 
|  AccountId  | Attributes.sfdcAccountId  | 
|  SerialNumber  | SerialNumber  | 
|  StockKeepingUnit  | ProductSKU  | 
|  UsageEndDate  | UsageEndDate  | 
|  Status  | Status  | 
|  Price  | Price  | 
|  Quantity  | Quantity  | 
|  Description  | Description  | 

The Salesforce-Asset customer data from the Salesforce object is associated with an Amazon Connect standard asset using the indexes in the following table. 


| Standard Index Name | Salesforce-Asset source field | 
| --- | --- | 
|  \$1salesforceAssetId  | Id  | 
|  \$1salesforceContactId  | ContactId  | 
|  \$1salesforceAccountId  | AccountId  | 

For example, you can use `_salesforceAssetId` and `_salesforceAccountId` as an `ObjectFilter.KeyName` with the [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) API to find a standard asset. You can find the Salesforce-Asset 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 `Salesforce-Asset`. 