Skip to content

Instantly share code, notes, and snippets.

@girishraja

girishraja/CrmData.svc.cs

Last active Dec 17, 2015
Embed
What would you like to do?
Proxy Code for CRMOnline - SharePoint Online BCS Sample
public class CrmData : DataService<Xrm.XrmServiceContext>
{
// This method is called only once to initialize service-wide policies.
public static void InitializeService(DataServiceConfiguration config)
{
//config.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
config.SetEntitySetAccessRule("AccountSet", EntitySetRights.AllRead);
config.SetEntitySetAccessRule("ContactSet", EntitySetRights.AllRead);
config.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment