Skip to content

Instantly share code, notes, and snippets.

@pawelgradecki
Created August 2, 2017 14:24
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/865067e41143de6b97b65efab35a8739 to your computer and use it in GitHub Desktop.
Save pawelgradecki/865067e41143de6b97b65efab35a8739 to your computer and use it in GitHub Desktop.
public void DoRequest(IOrganizationService service)
{
var request = new OrganizationRequest("ResolveEmailAddress");
request.Parameters["EmailAddresses"] = "test@test.com";
request.Parameters["ObjectTypeCodes"] = new int[] { 1, 2 };
var response = service.Execute(request);
if (response.Results.Contains("Entities"))
{
var result = (EntityCollection)response.Results["Entities"];
//go nuts with the result
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment