

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Customer Profiles 中标准资产的对象类型映射
<a name="object-type-mapping-standard-asset"></a>

此部分中的主题提供了标准资产定义，以及从外部应用程序到标准资产的对象类型映射。

**Topics**
+ [亚马逊 AppFlow 访问要求](appflow-access-requirements-asset.md)
+ [标准资产定义](standard-asset-definition.md)
+ [将 Salesforce 对象映射到标准资产](mapping-salesforce-objects-to-asset.md)

# 客户资料中的亚马逊 AppFlow 访问要求
<a name="appflow-access-requirements-asset"></a>

使用以下亚马逊 AppFlow 访问要求创建和删除 Salesforce 与 Amazon Connect 客户资料的集成：
+ `appflow:CreateFlow`
+ `appflow:DeleteFlow`

# Amazon Connect Customer Profiles 中的标准资产定义
<a name="standard-asset-definition"></a>

下表列出了 Customer Profiles 标准资产对象中的所有字段。


| 标准资产字段 | 数据类型 | 描述 | 
| --- | --- | --- | 
|  AssetId  | 字符串  | 标准资产的唯一标识符。  | 
|  AssetName  | 字符串  | 资产的名称。  | 
|  SerialNumber  | 字符串  | 资产的序列号。  | 
|  ModelNumber  | 字符串  | 资产的型号。  | 
|  ModelName  | 字符串  | 资产的模型名称。  | 
|  ProductSKU  | 字符串  | 资产的库存单位。  | 
|  PurchaseDate  | 字符串  | 资产的购买日期。  | 
|  UsageEndDate  | 字符串  | 资产的使用结束日期。  | 
|  Status  | 字符串  | 资产的状态。  | 
|  Price  | 字符串  | 资产的价格。  | 
|  Quantity  | 字符串  | 资产的数量。  | 
|  说明  | 字符串  | 资产的描述。  | 
|  AdditionalInformation  | 字符串  | 与资产相关的任何其他信息。  | 
|  DataSource  | 字符串  | 资产的数据源。  | 
|  属性  | String-to-string 地图  | 标准资产属性的键值对。  | 

标准资产对象按下表中的密钥建立索引。


| 标准索引名称 | 标准资产字段 | 
| --- | --- | 
| \$1assetId | AssetId | 
| \$1assetName | AssetName | 
| \$1serialNumber | SerialNumber | 

例如，您可以在 [SearchProfiles API](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html) 中使用`_assetName`作为密钥名称来查找其资产与搜索值 AssetName 匹配的个人资料。通过使用`ProfileId`和`ObjectTypeName`设置为的 [ListProfileObjects API](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html)，您可以找到与特定配置文件关联的标准资产对象`_asset`。

# 将 Salesforce 对象映射到 Customer Profiles 中的标准资产
<a name="mapping-salesforce-objects-to-asset"></a>

本主题列出了 Salesforce 对象中的哪些字段映射到 Customer Profiles 中标准资产对象中的字段。

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

以下是 Salesforce-Asset 对象中所有字段的列表。
+ Id
+ ContactId
+ AccountId
+ ParentId
+ RootAssetId
+ Product2Id
+ ProductCode
+ IsCompetitorProduct
+ CreatedDate
+ CreatedById
+ LastModifiedDate
+ LastModifiedById
+ SystemModstamp
+ IsDeleted
+ Name
+ SerialNumber
+ InstallDate
+ PurchaseDate
+ UsageEndDate
+ LifecycleStartDate
+ LifecycleEndDate
+ Status
+ Price
+ 数量
+ 说明
+ OwnerId
+ AssetProvidedById
+ AssetServiceById
+ IsInternal
+ AssetLevel
+ StockKeepingUnit
+ HasLifecycleManagement
+ CurrentMrr
+ CurrentLifecycleEndDate
+ CurrentQuantity
+ CurrentAmount
+ LastViewedDate
+ LastReferencedDate

## 将 Salesforce-Asset 对象映射到标准资产
<a name="mapping-salesforceaccountobject"></a>

Salesforce-Asset 对象中的字段子集映射到 Customer Profiles 中的标准资产对象。

下表列出了哪些字段可以从 Salesforce-Asset 对象映射到标准资产。


| Saleforce-Asset 源字段 | 标准资产目标字段 | 
| --- | --- | 
|  Id  | 属性。 sfdcAssetId  | 
|  ContactId  | 属性。 sfdcContactId  | 
|  AccountId  | 属性。 sfdcAccountId  | 
|  SerialNumber  | SerialNumber  | 
|  StockKeepingUnit  | ProductSKU  | 
|  UsageEndDate  | UsageEndDate  | 
|  Status  | Status  | 
|  Price  | 价格  | 
|  Quantity  | 数量  | 
|  说明  | Description  | 

Salesforce 对象中的 Salesforce-Asset 客户数据使用下表中的索引与 Amazon Connect 标准资产相关联。


| 标准索引名称 | Salesforce-Asset 源字段 | 
| --- | --- | 
|  \$1salesforceAssetId  | Id  | 
|  \$1salesforceContactId  | ContactId  | 
|  \$1salesforceAccountId  | AccountId  | 

例如，您可以在 [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html)API 中`ObjectFilter.KeyName`使用`_salesforceAssetId`和`_salesforceAccountId`来查找标准资产。通过使用和设置为的 [ListProfileObjects](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_ListProfileObjects.html)API，您可以找到与特定配置文件关联的 Salesforce-Asset 对象。`ProfileId` `ObjectTypeName` `Salesforce-Asset`