Hii, maybe it just a fool question. But i want to know how can i set value for 2 entities programatically in a executemultipleresuest class. Something like: Set value for contact name and account name in a plugin. I would be very gratefull if you show me a snippet code.
EDITED
i found this code :
private EntityCollection GetCollectionOfEntitiesToCreate()
{
return new EntityCollection()
{
EntityName = Account.EntityLogicalName,
Entities = {
new Account { Name = "Example Account 1" },
new Account { Name = "Example Account 2" },
new Account { Name = "Example Account 3" },
new Account { Name = "Example Account 4" },
new Account { Name = "Example Account 5" }
}
};
}
but i can't found EntityLogicalName right after (Account.) Also i want to ask you, there are "Example accout" from 1-5. Are they the entity logical name ? So i change "example accout" with "new_customentity" ?
regards,
*This post is locked for comments
I have the same question (0)