normally if you have only the account name you need to do a retrievemultiple (using a queryexpression) in order to retrieve first the ID of that account in order to fill your entityReference. because your tag is crm online, if you are with 2015 Online Update1 and your account name field is defined as an alternate key you can leverage on that. I know that I wrote "developer" stuff, but maybe for you it's better the first option: - retrieve all the accounts with the name test - decide which account is the right one if you get more than one account - get the id in GUID format - set your EntityReference hope it helps
↧