Returns the full contact record for a given contactid.
curl -X GET https://my-dynamics-domain.api.crm.dynamics.com/api/data/v9.0/contacts(1fa1e5b9-88df-e311-b8e5-6c3be5a8b200) \
-H "Accept: application/json" \
-H "OData-MaxVersion: 4.0" \
-H "OData-Version: 4.0" \
-H "Authorization: Bearer DYNAMICS_CRM_ACCESS_TOKEN"
#include <C_CkRestW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkJsonObjectW.h>
void ChilkatSample(void)
{
HCkRestW rest;
BOOL success;
BOOL bTls;
int port;
BOOL bAutoReconnect;
HCkStringBuilderW sbResponseBody;
int respStatusCode;
HCkJsonObjectW jsonResponse;
const wchar_t *odataContext;
const wchar_t *odataEtag;
int customertypecode;
int address1_latitude;
const wchar_t *birthdate;
BOOL merged;
int gendercode;
int territorycode;
const wchar_t *emailaddress1;
int haschildrencode;
int preferredappointmenttimecode;
BOOL isbackofficecustomer;
const wchar_t *modifiedon;
const wchar_t *v_owninguser_value;
int importsequencenumber;
const wchar_t *address1_composite;
int address1_longitude;
BOOL marketingonly;
BOOL donotphone;
int preferredcontactmethodcode;
int educationcode;
const wchar_t *v_ownerid_value;
int customersizecode;
const wchar_t *firstname;
BOOL donotpostalmail;
const wchar_t *yomifullname;
int address2_addresstypecode;
BOOL donotemail;
int address2_shippingmethodcode;
const wchar_t *fullname;
int timezoneruleversionnumber;
const wchar_t *address1_addressid;
int address2_freighttermscode;
int statuscode;
const wchar_t *createdon;
const wchar_t *address1_stateorprovince;
const wchar_t *lastname;
BOOL donotsendmm;
BOOL donotfax;
int leadsourcecode;
const wchar_t *address1_country;
int versionnumber;
const wchar_t *address1_line1;
BOOL creditonhold;
const wchar_t *telephone1;
const wchar_t *v_owningbusinessunit_value;
const wchar_t *address3_addressid;
BOOL donotbulkemail;
const wchar_t *v_modifiedby_value;
BOOL followemail;
int shippingmethodcode;
const wchar_t *v_createdby_value;
const wchar_t *address1_city;
BOOL donotbulkpostalmail;
const wchar_t *v_parentcustomerid_value;
const wchar_t *contactid;
BOOL participatesinworkflow;
int statecode;
const wchar_t *overriddencreatedon;
const wchar_t *address2_addressid;
const wchar_t *address1_postalcode;
int int_kloutscore;
const wchar_t *spousesname;
const wchar_t *emailaddress3;
const wchar_t *address3_telephone3;
const wchar_t *mobilephone;
const wchar_t *utcconversiontimezonecode;
const wchar_t *v_preferredserviceid_value;
const wchar_t *address3_shippingmethodcode;
const wchar_t *int_twitterservice;
const wchar_t *annualincome;
const wchar_t *fax;
const wchar_t *telephone3;
const wchar_t *address1_primarycontactname;
const wchar_t *address3_city;
const wchar_t *lastonholdtime;
const wchar_t *address2_stateorprovince;
const wchar_t *address2_line1;
const wchar_t *assistantphone;
const wchar_t *lastusedincampaign;
const wchar_t *address3_freighttermscode;
const wchar_t *pager;
const wchar_t *employeeid;
const wchar_t *managername;
const wchar_t *address1_name;
const wchar_t *department;
const wchar_t *address3_country;
const wchar_t *address2_telephone1;
const wchar_t *address2_primarycontactname;
const wchar_t *address2_latitude;
const wchar_t *address3_latitude;
const wchar_t *address2_postalcode;
const wchar_t *entityimage_timestamp;
const wchar_t *v_originatingleadid_value;
const wchar_t *v_masterid_value;
const wchar_t *v_createdonbehalfby_value;
const wchar_t *address3_postofficebox;
const wchar_t *subscriptionid;
const wchar_t *business2;
const wchar_t *address3_county;
const wchar_t *address1_telephone2;
const wchar_t *address1_freighttermscode;
const wchar_t *address3_addresstypecode;
const wchar_t *address1_addresstypecode;
const wchar_t *aging90_base;
const wchar_t *address3_primarycontactname;
const wchar_t *familystatuscode;
const wchar_t *home2;
const wchar_t *int_kloutscoreservice;
const wchar_t *address2_utcoffset;
const wchar_t *aging60;
const wchar_t *telephone2;
const wchar_t *yomimiddlename;
const wchar_t *v_modifiedonbehalfby_value;
const wchar_t *jobtitle;
const wchar_t *address3_utcoffset;
const wchar_t *address1_telephone3;
const wchar_t *address2_line2;
const wchar_t *creditlimit_base;
const wchar_t *address3_line1;
const wchar_t *address1_county;
const wchar_t *v_createdbyexternalparty_value;
const wchar_t *entityimageid;
const wchar_t *processid;
const wchar_t *int_facebook;
const wchar_t *description;
const wchar_t *address1_fax;
const wchar_t *address3_line2;
const wchar_t *externaluseridentifier;
const wchar_t *int_facebookservice;
const wchar_t *aging30_base;
const wchar_t *v_callback;
const wchar_t *emailaddress2;
const wchar_t *address2_line3;
const wchar_t *managerphone;
const wchar_t *websiteurl;
const wchar_t *exchangerate;
const wchar_t *address1_telephone1;
const wchar_t *address3_composite;
const wchar_t *address3_fax;
const wchar_t *childrensnames;
const wchar_t *v_owningteam_value;
const wchar_t *numberofchildren;
const wchar_t *address2_postofficebox;
const wchar_t *aging90;
const wchar_t *aging60_base;
const wchar_t *v_transactioncurrencyid_value;
const wchar_t *entityimage;
const wchar_t *v_modifiedbyexternalparty_value;
const wchar_t *paymenttermscode;
const wchar_t *address3_name;
const wchar_t *ftpsiteurl;
const wchar_t *address1_shippingmethodcode;
const wchar_t *v_preferredsystemuserid_value;
const wchar_t *address2_telephone2;
const wchar_t *v_slainvokedid_value;
const wchar_t *address3_telephone1;
const wchar_t *nickname;
const wchar_t *address1_postofficebox;
const wchar_t *v_preferredequipmentid_value;
const wchar_t *assistantname;
const wchar_t *address2_country;
const wchar_t *v_accountid_value;
const wchar_t *address2_name;
const wchar_t *stageid;
const wchar_t *address3_longitude;
const wchar_t *onholdtime;
const wchar_t *address2_telephone3;
const wchar_t *address3_upszone;
const wchar_t *aging30;
const wchar_t *address2_upszone;
const wchar_t *address1_upszone;
const wchar_t *creditlimit;
const wchar_t *salutation;
const wchar_t *traversedpath;
const wchar_t *accountrolecode;
const wchar_t *address1_utcoffset;
const wchar_t *governmentid;
const wchar_t *annualincome_base;
const wchar_t *address3_stateorprovince;
const wchar_t *address3_postalcode;
const wchar_t *address2_city;
const wchar_t *msdyn_gdproptout;
const wchar_t *company;
const wchar_t *address1_line2;
const wchar_t *address2_longitude;
const wchar_t *int_twitter;
const wchar_t *address3_telephone2;
const wchar_t *yomifirstname;
const wchar_t *address2_composite;
const wchar_t *address2_county;
const wchar_t *suffix;
const wchar_t *anniversary;
const wchar_t *v_parentcontactid_value;
const wchar_t *address2_fax;
const wchar_t *yomilastname;
const wchar_t *preferredappointmentdaycode;
const wchar_t *entityimage_url;
const wchar_t *address1_line3;
const wchar_t *v_defaultpricelevelid_value;
const wchar_t *v_slaid_value;
const wchar_t *middlename;
const wchar_t *address3_line3;
const wchar_t *timespentbymeonemailandmeetings;
rest = CkRestW_Create();
// URL: https://my-dynamics-domain.api.crm.dynamics.com/api/data/v9.0/contacts(1fa1e5b9-88df-e311-b8e5-6c3be5a8b200)
bTls = TRUE;
port = 443;
bAutoReconnect = TRUE;
success = CkRestW_Connect(rest,L"my-dynamics-domain.api.crm.dynamics.com",port,bTls,bAutoReconnect);
if (success != TRUE) {
wprintf(L"ConnectFailReason: %d\n",CkRestW_getConnectFailReason(rest));
wprintf(L"%s\n",CkRestW_lastErrorText(rest));
CkRestW_Dispose(rest);
return;
}
CkRestW_AddHeader(rest,L"OData-MaxVersion",L"4.0");
CkRestW_AddHeader(rest,L"Accept",L"application/json");
CkRestW_AddHeader(rest,L"OData-Version",L"4.0");
CkRestW_AddHeader(rest,L"Authorization",L"Bearer DYNAMICS_CRM_ACCESS_TOKEN");
sbResponseBody = CkStringBuilderW_Create();
success = CkRestW_FullRequestNoBodySb(rest,L"GET",L"/api/data/v9.0/contacts(1fa1e5b9-88df-e311-b8e5-6c3be5a8b200)",sbResponseBody);
if (success != TRUE) {
wprintf(L"%s\n",CkRestW_lastErrorText(rest));
CkRestW_Dispose(rest);
CkStringBuilderW_Dispose(sbResponseBody);
return;
}
respStatusCode = CkRestW_getResponseStatusCode(rest);
if (respStatusCode >= 400) {
wprintf(L"Response Status Code = %d\n",respStatusCode);
wprintf(L"Response Header:\n");
wprintf(L"%s\n",CkRestW_responseHeader(rest));
wprintf(L"Response Body:\n");
wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody));
CkRestW_Dispose(rest);
CkStringBuilderW_Dispose(sbResponseBody);
return;
}
jsonResponse = CkJsonObjectW_Create();
CkJsonObjectW_LoadSb(jsonResponse,sbResponseBody);
odataContext = CkJsonObjectW_stringOf(jsonResponse,L"\"@odata.context\"");
odataEtag = CkJsonObjectW_stringOf(jsonResponse,L"\"@odata.etag\"");
customertypecode = CkJsonObjectW_IntOf(jsonResponse,L"customertypecode");
address1_latitude = CkJsonObjectW_IntOf(jsonResponse,L"address1_latitude");
birthdate = CkJsonObjectW_stringOf(jsonResponse,L"birthdate");
merged = CkJsonObjectW_BoolOf(jsonResponse,L"merged");
gendercode = CkJsonObjectW_IntOf(jsonResponse,L"gendercode");
territorycode = CkJsonObjectW_IntOf(jsonResponse,L"territorycode");
emailaddress1 = CkJsonObjectW_stringOf(jsonResponse,L"emailaddress1");
haschildrencode = CkJsonObjectW_IntOf(jsonResponse,L"haschildrencode");
preferredappointmenttimecode = CkJsonObjectW_IntOf(jsonResponse,L"preferredappointmenttimecode");
isbackofficecustomer = CkJsonObjectW_BoolOf(jsonResponse,L"isbackofficecustomer");
modifiedon = CkJsonObjectW_stringOf(jsonResponse,L"modifiedon");
v_owninguser_value = CkJsonObjectW_stringOf(jsonResponse,L"_owninguser_value");
importsequencenumber = CkJsonObjectW_IntOf(jsonResponse,L"importsequencenumber");
address1_composite = CkJsonObjectW_stringOf(jsonResponse,L"address1_composite");
address1_longitude = CkJsonObjectW_IntOf(jsonResponse,L"address1_longitude");
marketingonly = CkJsonObjectW_BoolOf(jsonResponse,L"marketingonly");
donotphone = CkJsonObjectW_BoolOf(jsonResponse,L"donotphone");
preferredcontactmethodcode = CkJsonObjectW_IntOf(jsonResponse,L"preferredcontactmethodcode");
educationcode = CkJsonObjectW_IntOf(jsonResponse,L"educationcode");
v_ownerid_value = CkJsonObjectW_stringOf(jsonResponse,L"_ownerid_value");
customersizecode = CkJsonObjectW_IntOf(jsonResponse,L"customersizecode");
firstname = CkJsonObjectW_stringOf(jsonResponse,L"firstname");
donotpostalmail = CkJsonObjectW_BoolOf(jsonResponse,L"donotpostalmail");
yomifullname = CkJsonObjectW_stringOf(jsonResponse,L"yomifullname");
address2_addresstypecode = CkJsonObjectW_IntOf(jsonResponse,L"address2_addresstypecode");
donotemail = CkJsonObjectW_BoolOf(jsonResponse,L"donotemail");
address2_shippingmethodcode = CkJsonObjectW_IntOf(jsonResponse,L"address2_shippingmethodcode");
fullname = CkJsonObjectW_stringOf(jsonResponse,L"fullname");
timezoneruleversionnumber = CkJsonObjectW_IntOf(jsonResponse,L"timezoneruleversionnumber");
address1_addressid = CkJsonObjectW_stringOf(jsonResponse,L"address1_addressid");
address2_freighttermscode = CkJsonObjectW_IntOf(jsonResponse,L"address2_freighttermscode");
statuscode = CkJsonObjectW_IntOf(jsonResponse,L"statuscode");
createdon = CkJsonObjectW_stringOf(jsonResponse,L"createdon");
address1_stateorprovince = CkJsonObjectW_stringOf(jsonResponse,L"address1_stateorprovince");
lastname = CkJsonObjectW_stringOf(jsonResponse,L"lastname");
donotsendmm = CkJsonObjectW_BoolOf(jsonResponse,L"donotsendmm");
donotfax = CkJsonObjectW_BoolOf(jsonResponse,L"donotfax");
leadsourcecode = CkJsonObjectW_IntOf(jsonResponse,L"leadsourcecode");
address1_country = CkJsonObjectW_stringOf(jsonResponse,L"address1_country");
versionnumber = CkJsonObjectW_IntOf(jsonResponse,L"versionnumber");
address1_line1 = CkJsonObjectW_stringOf(jsonResponse,L"address1_line1");
creditonhold = CkJsonObjectW_BoolOf(jsonResponse,L"creditonhold");
telephone1 = CkJsonObjectW_stringOf(jsonResponse,L"telephone1");
v_owningbusinessunit_value = CkJsonObjectW_stringOf(jsonResponse,L"_owningbusinessunit_value");
address3_addressid = CkJsonObjectW_stringOf(jsonResponse,L"address3_addressid");
donotbulkemail = CkJsonObjectW_BoolOf(jsonResponse,L"donotbulkemail");
v_modifiedby_value = CkJsonObjectW_stringOf(jsonResponse,L"_modifiedby_value");
followemail = CkJsonObjectW_BoolOf(jsonResponse,L"followemail");
shippingmethodcode = CkJsonObjectW_IntOf(jsonResponse,L"shippingmethodcode");
v_createdby_value = CkJsonObjectW_stringOf(jsonResponse,L"_createdby_value");
address1_city = CkJsonObjectW_stringOf(jsonResponse,L"address1_city");
donotbulkpostalmail = CkJsonObjectW_BoolOf(jsonResponse,L"donotbulkpostalmail");
v_parentcustomerid_value = CkJsonObjectW_stringOf(jsonResponse,L"_parentcustomerid_value");
contactid = CkJsonObjectW_stringOf(jsonResponse,L"contactid");
participatesinworkflow = CkJsonObjectW_BoolOf(jsonResponse,L"participatesinworkflow");
statecode = CkJsonObjectW_IntOf(jsonResponse,L"statecode");
overriddencreatedon = CkJsonObjectW_stringOf(jsonResponse,L"overriddencreatedon");
address2_addressid = CkJsonObjectW_stringOf(jsonResponse,L"address2_addressid");
address1_postalcode = CkJsonObjectW_stringOf(jsonResponse,L"address1_postalcode");
int_kloutscore = CkJsonObjectW_IntOf(jsonResponse,L"int_kloutscore");
spousesname = CkJsonObjectW_stringOf(jsonResponse,L"spousesname");
emailaddress3 = CkJsonObjectW_stringOf(jsonResponse,L"emailaddress3");
address3_telephone3 = CkJsonObjectW_stringOf(jsonResponse,L"address3_telephone3");
mobilephone = CkJsonObjectW_stringOf(jsonResponse,L"mobilephone");
utcconversiontimezonecode = CkJsonObjectW_stringOf(jsonResponse,L"utcconversiontimezonecode");
v_preferredserviceid_value = CkJsonObjectW_stringOf(jsonResponse,L"_preferredserviceid_value");
address3_shippingmethodcode = CkJsonObjectW_stringOf(jsonResponse,L"address3_shippingmethodcode");
int_twitterservice = CkJsonObjectW_stringOf(jsonResponse,L"int_twitterservice");
annualincome = CkJsonObjectW_stringOf(jsonResponse,L"annualincome");
fax = CkJsonObjectW_stringOf(jsonResponse,L"fax");
telephone3 = CkJsonObjectW_stringOf(jsonResponse,L"telephone3");
address1_primarycontactname = CkJsonObjectW_stringOf(jsonResponse,L"address1_primarycontactname");
address3_city = CkJsonObjectW_stringOf(jsonResponse,L"address3_city");
lastonholdtime = CkJsonObjectW_stringOf(jsonResponse,L"lastonholdtime");
address2_stateorprovince = CkJsonObjectW_stringOf(jsonResponse,L"address2_stateorprovince");
address2_line1 = CkJsonObjectW_stringOf(jsonResponse,L"address2_line1");
assistantphone = CkJsonObjectW_stringOf(jsonResponse,L"assistantphone");
lastusedincampaign = CkJsonObjectW_stringOf(jsonResponse,L"lastusedincampaign");
address3_freighttermscode = CkJsonObjectW_stringOf(jsonResponse,L"address3_freighttermscode");
pager = CkJsonObjectW_stringOf(jsonResponse,L"pager");
employeeid = CkJsonObjectW_stringOf(jsonResponse,L"employeeid");
managername = CkJsonObjectW_stringOf(jsonResponse,L"managername");
address1_name = CkJsonObjectW_stringOf(jsonResponse,L"address1_name");
department = CkJsonObjectW_stringOf(jsonResponse,L"department");
address3_country = CkJsonObjectW_stringOf(jsonResponse,L"address3_country");
address2_telephone1 = CkJsonObjectW_stringOf(jsonResponse,L"address2_telephone1");
address2_primarycontactname = CkJsonObjectW_stringOf(jsonResponse,L"address2_primarycontactname");
address2_latitude = CkJsonObjectW_stringOf(jsonResponse,L"address2_latitude");
address3_latitude = CkJsonObjectW_stringOf(jsonResponse,L"address3_latitude");
address2_postalcode = CkJsonObjectW_stringOf(jsonResponse,L"address2_postalcode");
entityimage_timestamp = CkJsonObjectW_stringOf(jsonResponse,L"entityimage_timestamp");
v_originatingleadid_value = CkJsonObjectW_stringOf(jsonResponse,L"_originatingleadid_value");
v_masterid_value = CkJsonObjectW_stringOf(jsonResponse,L"_masterid_value");
v_createdonbehalfby_value = CkJsonObjectW_stringOf(jsonResponse,L"_createdonbehalfby_value");
address3_postofficebox = CkJsonObjectW_stringOf(jsonResponse,L"address3_postofficebox");
subscriptionid = CkJsonObjectW_stringOf(jsonResponse,L"subscriptionid");
business2 = CkJsonObjectW_stringOf(jsonResponse,L"business2");
address3_county = CkJsonObjectW_stringOf(jsonResponse,L"address3_county");
address1_telephone2 = CkJsonObjectW_stringOf(jsonResponse,L"address1_telephone2");
address1_freighttermscode = CkJsonObjectW_stringOf(jsonResponse,L"address1_freighttermscode");
address3_addresstypecode = CkJsonObjectW_stringOf(jsonResponse,L"address3_addresstypecode");
address1_addresstypecode = CkJsonObjectW_stringOf(jsonResponse,L"address1_addresstypecode");
aging90_base = CkJsonObjectW_stringOf(jsonResponse,L"aging90_base");
address3_primarycontactname = CkJsonObjectW_stringOf(jsonResponse,L"address3_primarycontactname");
familystatuscode = CkJsonObjectW_stringOf(jsonResponse,L"familystatuscode");
home2 = CkJsonObjectW_stringOf(jsonResponse,L"home2");
int_kloutscoreservice = CkJsonObjectW_stringOf(jsonResponse,L"int_kloutscoreservice");
address2_utcoffset = CkJsonObjectW_stringOf(jsonResponse,L"address2_utcoffset");
aging60 = CkJsonObjectW_stringOf(jsonResponse,L"aging60");
telephone2 = CkJsonObjectW_stringOf(jsonResponse,L"telephone2");
yomimiddlename = CkJsonObjectW_stringOf(jsonResponse,L"yomimiddlename");
v_modifiedonbehalfby_value = CkJsonObjectW_stringOf(jsonResponse,L"_modifiedonbehalfby_value");
jobtitle = CkJsonObjectW_stringOf(jsonResponse,L"jobtitle");
address3_utcoffset = CkJsonObjectW_stringOf(jsonResponse,L"address3_utcoffset");
address1_telephone3 = CkJsonObjectW_stringOf(jsonResponse,L"address1_telephone3");
address2_line2 = CkJsonObjectW_stringOf(jsonResponse,L"address2_line2");
creditlimit_base = CkJsonObjectW_stringOf(jsonResponse,L"creditlimit_base");
address3_line1 = CkJsonObjectW_stringOf(jsonResponse,L"address3_line1");
address1_county = CkJsonObjectW_stringOf(jsonResponse,L"address1_county");
v_createdbyexternalparty_value = CkJsonObjectW_stringOf(jsonResponse,L"_createdbyexternalparty_value");
entityimageid = CkJsonObjectW_stringOf(jsonResponse,L"entityimageid");
processid = CkJsonObjectW_stringOf(jsonResponse,L"processid");
int_facebook = CkJsonObjectW_stringOf(jsonResponse,L"int_facebook");
description = CkJsonObjectW_stringOf(jsonResponse,L"description");
address1_fax = CkJsonObjectW_stringOf(jsonResponse,L"address1_fax");
address3_line2 = CkJsonObjectW_stringOf(jsonResponse,L"address3_line2");
externaluseridentifier = CkJsonObjectW_stringOf(jsonResponse,L"externaluseridentifier");
int_facebookservice = CkJsonObjectW_stringOf(jsonResponse,L"int_facebookservice");
aging30_base = CkJsonObjectW_stringOf(jsonResponse,L"aging30_base");
v_callback = CkJsonObjectW_stringOf(jsonResponse,L"callback");
emailaddress2 = CkJsonObjectW_stringOf(jsonResponse,L"emailaddress2");
address2_line3 = CkJsonObjectW_stringOf(jsonResponse,L"address2_line3");
managerphone = CkJsonObjectW_stringOf(jsonResponse,L"managerphone");
websiteurl = CkJsonObjectW_stringOf(jsonResponse,L"websiteurl");
exchangerate = CkJsonObjectW_stringOf(jsonResponse,L"exchangerate");
address1_telephone1 = CkJsonObjectW_stringOf(jsonResponse,L"address1_telephone1");
address3_composite = CkJsonObjectW_stringOf(jsonResponse,L"address3_composite");
address3_fax = CkJsonObjectW_stringOf(jsonResponse,L"address3_fax");
childrensnames = CkJsonObjectW_stringOf(jsonResponse,L"childrensnames");
v_owningteam_value = CkJsonObjectW_stringOf(jsonResponse,L"_owningteam_value");
numberofchildren = CkJsonObjectW_stringOf(jsonResponse,L"numberofchildren");
address2_postofficebox = CkJsonObjectW_stringOf(jsonResponse,L"address2_postofficebox");
aging90 = CkJsonObjectW_stringOf(jsonResponse,L"aging90");
aging60_base = CkJsonObjectW_stringOf(jsonResponse,L"aging60_base");
v_transactioncurrencyid_value = CkJsonObjectW_stringOf(jsonResponse,L"_transactioncurrencyid_value");
entityimage = CkJsonObjectW_stringOf(jsonResponse,L"entityimage");
v_modifiedbyexternalparty_value = CkJsonObjectW_stringOf(jsonResponse,L"_modifiedbyexternalparty_value");
paymenttermscode = CkJsonObjectW_stringOf(jsonResponse,L"paymenttermscode");
address3_name = CkJsonObjectW_stringOf(jsonResponse,L"address3_name");
ftpsiteurl = CkJsonObjectW_stringOf(jsonResponse,L"ftpsiteurl");
address1_shippingmethodcode = CkJsonObjectW_stringOf(jsonResponse,L"address1_shippingmethodcode");
v_preferredsystemuserid_value = CkJsonObjectW_stringOf(jsonResponse,L"_preferredsystemuserid_value");
address2_telephone2 = CkJsonObjectW_stringOf(jsonResponse,L"address2_telephone2");
v_slainvokedid_value = CkJsonObjectW_stringOf(jsonResponse,L"_slainvokedid_value");
address3_telephone1 = CkJsonObjectW_stringOf(jsonResponse,L"address3_telephone1");
nickname = CkJsonObjectW_stringOf(jsonResponse,L"nickname");
address1_postofficebox = CkJsonObjectW_stringOf(jsonResponse,L"address1_postofficebox");
v_preferredequipmentid_value = CkJsonObjectW_stringOf(jsonResponse,L"_preferredequipmentid_value");
assistantname = CkJsonObjectW_stringOf(jsonResponse,L"assistantname");
address2_country = CkJsonObjectW_stringOf(jsonResponse,L"address2_country");
v_accountid_value = CkJsonObjectW_stringOf(jsonResponse,L"_accountid_value");
address2_name = CkJsonObjectW_stringOf(jsonResponse,L"address2_name");
stageid = CkJsonObjectW_stringOf(jsonResponse,L"stageid");
address3_longitude = CkJsonObjectW_stringOf(jsonResponse,L"address3_longitude");
onholdtime = CkJsonObjectW_stringOf(jsonResponse,L"onholdtime");
address2_telephone3 = CkJsonObjectW_stringOf(jsonResponse,L"address2_telephone3");
address3_upszone = CkJsonObjectW_stringOf(jsonResponse,L"address3_upszone");
aging30 = CkJsonObjectW_stringOf(jsonResponse,L"aging30");
address2_upszone = CkJsonObjectW_stringOf(jsonResponse,L"address2_upszone");
address1_upszone = CkJsonObjectW_stringOf(jsonResponse,L"address1_upszone");
creditlimit = CkJsonObjectW_stringOf(jsonResponse,L"creditlimit");
salutation = CkJsonObjectW_stringOf(jsonResponse,L"salutation");
traversedpath = CkJsonObjectW_stringOf(jsonResponse,L"traversedpath");
accountrolecode = CkJsonObjectW_stringOf(jsonResponse,L"accountrolecode");
address1_utcoffset = CkJsonObjectW_stringOf(jsonResponse,L"address1_utcoffset");
governmentid = CkJsonObjectW_stringOf(jsonResponse,L"governmentid");
annualincome_base = CkJsonObjectW_stringOf(jsonResponse,L"annualincome_base");
address3_stateorprovince = CkJsonObjectW_stringOf(jsonResponse,L"address3_stateorprovince");
address3_postalcode = CkJsonObjectW_stringOf(jsonResponse,L"address3_postalcode");
address2_city = CkJsonObjectW_stringOf(jsonResponse,L"address2_city");
msdyn_gdproptout = CkJsonObjectW_stringOf(jsonResponse,L"msdyn_gdproptout");
company = CkJsonObjectW_stringOf(jsonResponse,L"company");
address1_line2 = CkJsonObjectW_stringOf(jsonResponse,L"address1_line2");
address2_longitude = CkJsonObjectW_stringOf(jsonResponse,L"address2_longitude");
int_twitter = CkJsonObjectW_stringOf(jsonResponse,L"int_twitter");
address3_telephone2 = CkJsonObjectW_stringOf(jsonResponse,L"address3_telephone2");
yomifirstname = CkJsonObjectW_stringOf(jsonResponse,L"yomifirstname");
address2_composite = CkJsonObjectW_stringOf(jsonResponse,L"address2_composite");
address2_county = CkJsonObjectW_stringOf(jsonResponse,L"address2_county");
suffix = CkJsonObjectW_stringOf(jsonResponse,L"suffix");
anniversary = CkJsonObjectW_stringOf(jsonResponse,L"anniversary");
v_parentcontactid_value = CkJsonObjectW_stringOf(jsonResponse,L"_parentcontactid_value");
address2_fax = CkJsonObjectW_stringOf(jsonResponse,L"address2_fax");
yomilastname = CkJsonObjectW_stringOf(jsonResponse,L"yomilastname");
preferredappointmentdaycode = CkJsonObjectW_stringOf(jsonResponse,L"preferredappointmentdaycode");
entityimage_url = CkJsonObjectW_stringOf(jsonResponse,L"entityimage_url");
address1_line3 = CkJsonObjectW_stringOf(jsonResponse,L"address1_line3");
v_defaultpricelevelid_value = CkJsonObjectW_stringOf(jsonResponse,L"_defaultpricelevelid_value");
v_slaid_value = CkJsonObjectW_stringOf(jsonResponse,L"_slaid_value");
middlename = CkJsonObjectW_stringOf(jsonResponse,L"middlename");
address3_line3 = CkJsonObjectW_stringOf(jsonResponse,L"address3_line3");
timespentbymeonemailandmeetings = CkJsonObjectW_stringOf(jsonResponse,L"timespentbymeonemailandmeetings");
CkRestW_Dispose(rest);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jsonResponse);
}
{
"@odata.context": "https://mydomain.api.crm.dynamics.com/api/data/v9.0/$metadata#contacts/$entity",
"@odata.etag": "W/\"1162210\"",
"customertypecode": 1,
"address1_latitude": 35.82096,
"birthdate": "1965-05-24",
"merged": false,
"gendercode": 1,
"territorycode": 1,
"emailaddress1": "tom@cohowinery.com",
"haschildrencode": 1,
"preferredappointmenttimecode": 1,
"isbackofficecustomer": false,
"modifiedon": "2018-03-12T16:09:53Z",
"_owninguser_value": "55e68414-a277-42d6-ba36-d90484708a1d",
"importsequencenumber": 104,
"address1_composite": "4405 Balboa Court\r\nSanta Cruz, NM 72052\r\nUS",
"address1_longitude": -106.21346,
"marketingonly": false,
"donotphone": false,
"preferredcontactmethodcode": 1,
"educationcode": 1,
"_ownerid_value": "55e68414-a277-42d6-ba36-d90484708a1d",
"customersizecode": 1,
"firstname": "Tomasz",
"donotpostalmail": false,
"yomifullname": "Tomasz Bochenek",
"address2_addresstypecode": 1,
"donotemail": false,
"address2_shippingmethodcode": 1,
"fullname": "Tomasz Bochenek",
"timezoneruleversionnumber": 0,
"address1_addressid": "c3a917d8-1daa-463b-a4ac-f6d9878d7456",
"address2_freighttermscode": 1,
"statuscode": 1,
"createdon": "2017-01-20T22:40:01Z",
"address1_stateorprovince": "NM",
"lastname": "Bochenek",
"donotsendmm": false,
"donotfax": false,
"leadsourcecode": 1,
"address1_country": "US",
"versionnumber": 1162210,
"address1_line1": "4405 Balboa Court",
"creditonhold": false,
"telephone1": "456-698-4581",
"_owningbusinessunit_value": "c4106190-c81e-e811-a980-000d3a192e9a",
"address3_addressid": "e3e5cc17-4990-4d08-8a4d-c16ca45217ab",
"donotbulkemail": false,
"_modifiedby_value": "e00ba668-e2de-47bc-8f92-ab9573f92ff4",
"followemail": true,
"shippingmethodcode": 1,
"_createdby_value": "55e68414-a277-42d6-ba36-d90484708a1d",
"address1_city": "Santa Cruz",
"donotbulkpostalmail": false,
"_parentcustomerid_value": "b0a19cdd-88df-e311-b8e5-6c3be5a8b200",
"contactid": "1fa1e5b9-88df-e311-b8e5-6c3be5a8b200",
"participatesinworkflow": false,
"statecode": 0,
"overriddencreatedon": "2018-03-03T12:22:25Z",
"address2_addressid": "fee626cd-e834-4a68-a54e-b98c23847b2d",
"address1_postalcode": "72052",
"int_kloutscore": 90,
"spousesname": null,
"emailaddress3": null,
"address3_telephone3": null,
"mobilephone": null,
"utcconversiontimezonecode": null,
"_preferredserviceid_value": null,
"address3_shippingmethodcode": null,
"int_twitterservice": null,
"annualincome": null,
"fax": null,
"telephone3": null,
"address1_primarycontactname": null,
"address3_city": null,
"lastonholdtime": null,
"address2_stateorprovince": null,
"address2_line1": null,
"assistantphone": null,
"lastusedincampaign": null,
"address3_freighttermscode": null,
"pager": null,
"employeeid": null,
"managername": null,
"address1_name": null,
"department": null,
"address3_country": null,
"address2_telephone1": null,
"address2_primarycontactname": null,
"address2_latitude": null,
"address3_latitude": null,
"address2_postalcode": null,
"entityimage_timestamp": null,
"_originatingleadid_value": null,
"_masterid_value": null,
"_createdonbehalfby_value": null,
"address3_postofficebox": null,
"subscriptionid": null,
"business2": null,
"address3_county": null,
"address1_telephone2": null,
"address1_freighttermscode": null,
"address3_addresstypecode": null,
"address1_addresstypecode": null,
"aging90_base": null,
"address3_primarycontactname": null,
"familystatuscode": null,
"home2": null,
"int_kloutscoreservice": null,
"address2_utcoffset": null,
"aging60": null,
"telephone2": null,
"yomimiddlename": null,
"_modifiedonbehalfby_value": null,
"jobtitle": null,
"address3_utcoffset": null,
"address1_telephone3": null,
"address2_line2": null,
"creditlimit_base": null,
"address3_line1": null,
"address1_county": null,
"_createdbyexternalparty_value": null,
"entityimageid": null,
"processid": null,
"int_facebook": null,
"description": null,
"address1_fax": null,
"address3_line2": null,
"externaluseridentifier": null,
"int_facebookservice": null,
"aging30_base": null,
"callback": null,
"emailaddress2": null,
"address2_line3": null,
"managerphone": null,
"websiteurl": null,
"exchangerate": null,
"address1_telephone1": null,
"address3_composite": null,
"address3_fax": null,
"childrensnames": null,
"_owningteam_value": null,
"numberofchildren": null,
"address2_postofficebox": null,
"aging90": null,
"aging60_base": null,
"_transactioncurrencyid_value": null,
"entityimage": null,
"_modifiedbyexternalparty_value": null,
"paymenttermscode": null,
"address3_name": null,
"ftpsiteurl": null,
"address1_shippingmethodcode": null,
"_preferredsystemuserid_value": null,
"address2_telephone2": null,
"_slainvokedid_value": null,
"address3_telephone1": null,
"nickname": null,
"address1_postofficebox": null,
"_preferredequipmentid_value": null,
"assistantname": null,
"address2_country": null,
"_accountid_value": null,
"address2_name": null,
"stageid": null,
"address3_longitude": null,
"onholdtime": null,
"address2_telephone3": null,
"address3_upszone": null,
"aging30": null,
"address2_upszone": null,
"address1_upszone": null,
"creditlimit": null,
"salutation": null,
"traversedpath": null,
"accountrolecode": null,
"address1_utcoffset": null,
"governmentid": null,
"annualincome_base": null,
"address3_stateorprovince": null,
"address3_postalcode": null,
"address2_city": null,
"msdyn_gdproptout": null,
"company": null,
"address1_line2": null,
"address2_longitude": null,
"int_twitter": null,
"address3_telephone2": null,
"yomifirstname": null,
"address2_composite": null,
"address2_county": null,
"suffix": null,
"anniversary": null,
"_parentcontactid_value": null,
"address2_fax": null,
"yomilastname": null,
"preferredappointmentdaycode": null,
"entityimage_url": null,
"address1_line3": null,
"_defaultpricelevelid_value": null,
"_slaid_value": null,
"middlename": null,
"address3_line3": null,
"timespentbymeonemailandmeetings": null
}