Skip to content

Instantly share code, notes, and snippets.

@pawelgradecki
Created June 13, 2017 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawelgradecki/dfde9eec8418b0146d8fbdb655520a36 to your computer and use it in GitHub Desktop.
Save pawelgradecki/dfde9eec8418b0146d8fbdb655520a36 to your computer and use it in GitHub Desktop.
public List<MyAccount> GetAccounts()
{
using (var ctx = new OrganizationServiceContext(this.service))
{
return ctx.CreateQuery<MyAccount>()
.Where(x => x.odx_clientcode != null)
.ToList();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment