Reputation: 375
I need to get all the account records assigned to the system user. This linq query is not working. What am I doing wrong? `
var accts = from a in xrm.AccountSet
where a.OwningUser == new CrmEntityReference(SystemUser.EntityLogicalName, new Guid("<systemUserGuid>"))
select a;
Upvotes: 0
Views: 152
Reputation: 15138
try with
ar accts = from a in xrm.AccountSet
where a.OwnerId.Id == new Guid("<systemUserGuid>")
select a;
Upvotes: 1