【发布时间】:2017-07-07 08:17:10
【问题描述】:
我不知道如何创建绑定到帐户的联系人。我有一个包含帐户和联系人的 csv 文件,我想将此数据导入到我的 CRM 中。这是我在 CRM 中添加帐户的代码:
#region Column One Mappings
// Create a column mapping for a 'text' type field. Ajouter un Compte
ColumnMapping colMapping1 = new ColumnMapping()
{
// Set source properties.
SourceAttributeName = "my_new_accounts",
SourceEntityName = "Account_1",
// Set target properties.
TargetAttributeName = "name",
TargetEntityName = Account.EntityLogicalName,
// Relate this column mapping with the data map.
ImportMapId = new EntityReference(ImportMap.EntityLogicalName, importMapId),
// Force this column to be processed.
ProcessCode = new OptionSetValue((int)ColumnMappingProcessCode.Process)
};
// Create the mapping.
Guid colMappingId1 = _serviceProxy.Create(colMapping1);
#endregion
我想创建多个绑定到一个帐户的联系人。
【问题讨论】:
标签: c# sdk dynamics-crm crm