By Proximity
//create request object
string requestName = "ikl_InogicMaplyticsAPIProximity";
//create request object
OrganizationRequest orgReq = new OrganizationRequest(requestName);
//for proximity
orgReq["CurrentLocation"] = "New York";
orgReq["Proximity"] = "10,25";
orgReq["DistanceUnit"] = "Mile";
//Entity & view
orgReq["Entity"] = "account";
orgReq["ViewName"] = "My Active Accounts";
OrganizationResponse response = service.Execute(orgReq);
EntityCollection recordsCollection = (EntityCollection)response.Results["RecordsCollection"];
Last updated