Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

LINQ Query in Dynamics 365 Isolated Plugin (Sandbox)

$
0
0

I have a plug-in that is deployed with an isolation mode of sandbox. The uses an instance of the OrganizationServiceContext class generated by CrmSvcUtil.exe to perform LINQ queries, e.g. MyOrganizationServiceContextInstance.SystemUserSet.FirstOrDefault(x => x.Id == PluginExecutionContext.UserId to get the SystemUser running the plug-in. Of course, SystemUserSet is underlyingly CreateQuery<SystemUser>(). I am getting an error "The specified type <MyEarlyBoundNamespace>.SystemUser is not a known entity type." I have added the ProxyTypesAssembly Attribute to the Assembly.cs file. I have seen one or two posts that say you can't execute LINQ queries in this fashion in a sandboxed plugin and one or two posts that say you can. Can someone please confirm (or deny) whether or not it is possible to execute LINQ queries in a sandboxed plug-in?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images