

# Object type mapping for the standard asset in Customer Profiles
<a name="object-type-mapping-standard-asset"></a>

The topics in this section provide the standard asset definition, and the object type mapping from external applications to the standard asset.

**Topics**
+ [Amazon AppFlow access requirements](appflow-access-requirements-asset.md)
+ [Standard asset definition](standard-asset-definition.md)
+ [Mapping Salesforce objects to standard asset](mapping-salesforce-objects-to-asset.md)

# Amazon AppFlow access requirements in Customer Profiles
<a name="appflow-access-requirements-asset"></a>

Use the following Amazon AppFlow access requirements to create and delete Salesforce integrations with Amazon Connect Customer Profiles:
+ `appflow:CreateFlow`
+ `appflow:DeleteFlow`

# Standard asset definition in Amazon Connect Customer Profiles
<a name="standard-asset-definition"></a>

The following table lists all the fields in the Customer Profiles standard asset object.


| Standard asset field | Data type | Description | 
| --- | --- | --- | 
|  AssetId  | String  | The unique identifier of a standard asset.  | 
|  AssetName  | String  | The asset's name.  | 
|  SerialNumber  | String  | The asset's serial number.  | 
|  ModelNumber  | String  | The asset's model number.  | 
|  ModelName  | String  | The asset's model name.  | 
|  ProductSKU  | String  | The asset's stock keeping unit.  | 
|  PurchaseDate  | String  | The asset's purchase date.  | 
|  UsageEndDate  | String  | The asset's usage end date.  | 
|  Status  | String  | The asset's status.  | 
|  Price  | String  | The asset's price.  | 
|  Quantity  | String  | The asset's quantity.  | 
|  Description  | String  | The asset's description.  | 
|  AdditionalInformation  | String  | Any additional information relevant to the asset.  | 
|  DataSource  | String  | The asset's data source.  | 
|  Attributes  | String-to-string map  | Key-value pair of attributes of a standard asset.  | 

The standard asset objects are indexed by the keys in the following table.


| Standard index name | Standard asset field | 
| --- | --- | 
| \$1assetId | AssetId | 
| \$1assetName | AssetName | 
| \$1serialNumber | SerialNumber | 

For example, you can use `_assetName` as a key name with the [SearchProfiles API](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html) to find a profile that has an asset whose AssetName matches with the search value. You can find the standard asset objects associated with a specific profile by using the [ListProfileObjects API](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html) with the `ProfileId` and `ObjectTypeName` set to `_asset`.

# 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`. 