Hello,
I am trying to retrieve an acount enity value, which I am sure is created and avaalbe in my dynamic CRM. The below is my code.
Guid contactId = service.Create(victor);
Console.WriteLine($"contact name {victor["firstname"]} was created");
QueryByAttribute account = new QueryByAttribute(Account.EntityLogicalName);
account.AddAttributeValue("name", "Walsall Manor");
account.ColumnSet = new ColumnSet("accountid");
EntityCollection entityCollection = service.RetrieveMultiple(account);
Account retrievedaccount = (Account)entityCollection.Entities[0];
Console.WriteLine($"Account with name - {retrievedaccount.Name} retrieved");
It is giving me an out of range error. Thanks
*This post is locked for comments
I have the same question (0)