Created
August 2, 2017 14:24
-
-
Save pawelgradecki/865067e41143de6b97b65efab35a8739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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