Je ne sais pas comment je peux créer un contact lié à un compte. J'ai un fichier csv avec un compte et un contact, et je voudrais importer ces données dans mon CRM. C'est mon code pour ajouter un compte dans le CRM:créer un contact de compte dans CRM C#
#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
Je voudrais créer beaucoup de contacts liés à un compte.