C Dynamics CRM: Retrieve a Single Contact

Back to Index

Returns the full contact record for a given contactid.

Documentation: https://msdn.microsoft.com/en-us/library/gg334767.aspx#Basic query example

CURL Command

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"

C Example

#include <C_CkRest.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>

void ChilkatSample(void)
    {
    HCkRest rest;
    BOOL success;
    BOOL bTls;
    int port;
    BOOL bAutoReconnect;
    HCkStringBuilder sbResponseBody;
    int respStatusCode;
    HCkJsonObject jsonResponse;
    const char *odataContext;
    const char *odataEtag;
    int customertypecode;
    int address1_latitude;
    const char *birthdate;
    BOOL merged;
    int gendercode;
    int territorycode;
    const char *emailaddress1;
    int haschildrencode;
    int preferredappointmenttimecode;
    BOOL isbackofficecustomer;
    const char *modifiedon;
    const char *v_owninguser_value;
    int importsequencenumber;
    const char *address1_composite;
    int address1_longitude;
    BOOL marketingonly;
    BOOL donotphone;
    int preferredcontactmethodcode;
    int educationcode;
    const char *v_ownerid_value;
    int customersizecode;
    const char *firstname;
    BOOL donotpostalmail;
    const char *yomifullname;
    int address2_addresstypecode;
    BOOL donotemail;
    int address2_shippingmethodcode;
    const char *fullname;
    int timezoneruleversionnumber;
    const char *address1_addressid;
    int address2_freighttermscode;
    int statuscode;
    const char *createdon;
    const char *address1_stateorprovince;
    const char *lastname;
    BOOL donotsendmm;
    BOOL donotfax;
    int leadsourcecode;
    const char *address1_country;
    int versionnumber;
    const char *address1_line1;
    BOOL creditonhold;
    const char *telephone1;
    const char *v_owningbusinessunit_value;
    const char *address3_addressid;
    BOOL donotbulkemail;
    const char *v_modifiedby_value;
    BOOL followemail;
    int shippingmethodcode;
    const char *v_createdby_value;
    const char *address1_city;
    BOOL donotbulkpostalmail;
    const char *v_parentcustomerid_value;
    const char *contactid;
    BOOL participatesinworkflow;
    int statecode;
    const char *overriddencreatedon;
    const char *address2_addressid;
    const char *address1_postalcode;
    int int_kloutscore;
    const char *spousesname;
    const char *emailaddress3;
    const char *address3_telephone3;
    const char *mobilephone;
    const char *utcconversiontimezonecode;
    const char *v_preferredserviceid_value;
    const char *address3_shippingmethodcode;
    const char *int_twitterservice;
    const char *annualincome;
    const char *fax;
    const char *telephone3;
    const char *address1_primarycontactname;
    const char *address3_city;
    const char *lastonholdtime;
    const char *address2_stateorprovince;
    const char *address2_line1;
    const char *assistantphone;
    const char *lastusedincampaign;
    const char *address3_freighttermscode;
    const char *pager;
    const char *employeeid;
    const char *managername;
    const char *address1_name;
    const char *department;
    const char *address3_country;
    const char *address2_telephone1;
    const char *address2_primarycontactname;
    const char *address2_latitude;
    const char *address3_latitude;
    const char *address2_postalcode;
    const char *entityimage_timestamp;
    const char *v_originatingleadid_value;
    const char *v_masterid_value;
    const char *v_createdonbehalfby_value;
    const char *address3_postofficebox;
    const char *subscriptionid;
    const char *business2;
    const char *address3_county;
    const char *address1_telephone2;
    const char *address1_freighttermscode;
    const char *address3_addresstypecode;
    const char *address1_addresstypecode;
    const char *aging90_base;
    const char *address3_primarycontactname;
    const char *familystatuscode;
    const char *home2;
    const char *int_kloutscoreservice;
    const char *address2_utcoffset;
    const char *aging60;
    const char *telephone2;
    const char *yomimiddlename;
    const char *v_modifiedonbehalfby_value;
    const char *jobtitle;
    const char *address3_utcoffset;
    const char *address1_telephone3;
    const char *address2_line2;
    const char *creditlimit_base;
    const char *address3_line1;
    const char *address1_county;
    const char *v_createdbyexternalparty_value;
    const char *entityimageid;
    const char *processid;
    const char *int_facebook;
    const char *description;
    const char *address1_fax;
    const char *address3_line2;
    const char *externaluseridentifier;
    const char *int_facebookservice;
    const char *aging30_base;
    const char *v_callback;
    const char *emailaddress2;
    const char *address2_line3;
    const char *managerphone;
    const char *websiteurl;
    const char *exchangerate;
    const char *address1_telephone1;
    const char *address3_composite;
    const char *address3_fax;
    const char *childrensnames;
    const char *v_owningteam_value;
    const char *numberofchildren;
    const char *address2_postofficebox;
    const char *aging90;
    const char *aging60_base;
    const char *v_transactioncurrencyid_value;
    const char *entityimage;
    const char *v_modifiedbyexternalparty_value;
    const char *paymenttermscode;
    const char *address3_name;
    const char *ftpsiteurl;
    const char *address1_shippingmethodcode;
    const char *v_preferredsystemuserid_value;
    const char *address2_telephone2;
    const char *v_slainvokedid_value;
    const char *address3_telephone1;
    const char *nickname;
    const char *address1_postofficebox;
    const char *v_preferredequipmentid_value;
    const char *assistantname;
    const char *address2_country;
    const char *v_accountid_value;
    const char *address2_name;
    const char *stageid;
    const char *address3_longitude;
    const char *onholdtime;
    const char *address2_telephone3;
    const char *address3_upszone;
    const char *aging30;
    const char *address2_upszone;
    const char *address1_upszone;
    const char *creditlimit;
    const char *salutation;
    const char *traversedpath;
    const char *accountrolecode;
    const char *address1_utcoffset;
    const char *governmentid;
    const char *annualincome_base;
    const char *address3_stateorprovince;
    const char *address3_postalcode;
    const char *address2_city;
    const char *msdyn_gdproptout;
    const char *company;
    const char *address1_line2;
    const char *address2_longitude;
    const char *int_twitter;
    const char *address3_telephone2;
    const char *yomifirstname;
    const char *address2_composite;
    const char *address2_county;
    const char *suffix;
    const char *anniversary;
    const char *v_parentcontactid_value;
    const char *address2_fax;
    const char *yomilastname;
    const char *preferredappointmentdaycode;
    const char *entityimage_url;
    const char *address1_line3;
    const char *v_defaultpricelevelid_value;
    const char *v_slaid_value;
    const char *middlename;
    const char *address3_line3;
    const char *timespentbymeonemailandmeetings;

    rest = CkRest_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 = CkRest_Connect(rest,"my-dynamics-domain.api.crm.dynamics.com",port,bTls,bAutoReconnect);
    if (success != TRUE) {
        printf("ConnectFailReason: %d\n",CkRest_getConnectFailReason(rest));
        printf("%s\n",CkRest_lastErrorText(rest));
        CkRest_Dispose(rest);
        return;
    }

    CkRest_AddHeader(rest,"OData-MaxVersion","4.0");
    CkRest_AddHeader(rest,"Accept","application/json");
    CkRest_AddHeader(rest,"OData-Version","4.0");
    CkRest_AddHeader(rest,"Authorization","Bearer DYNAMICS_CRM_ACCESS_TOKEN");

    sbResponseBody = CkStringBuilder_Create();
    success = CkRest_FullRequestNoBodySb(rest,"GET","/api/data/v9.0/contacts(1fa1e5b9-88df-e311-b8e5-6c3be5a8b200)",sbResponseBody);
    if (success != TRUE) {
        printf("%s\n",CkRest_lastErrorText(rest));
        CkRest_Dispose(rest);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRest_getResponseStatusCode(rest);
    if (respStatusCode >= 400) {
        printf("Response Status Code = %d\n",respStatusCode);
        printf("Response Header:\n");
        printf("%s\n",CkRest_responseHeader(rest));
        printf("Response Body:\n");
        printf("%s\n",CkStringBuilder_getAsString(sbResponseBody));
        CkRest_Dispose(rest);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

    jsonResponse = CkJsonObject_Create();
    CkJsonObject_LoadSb(jsonResponse,sbResponseBody);

    odataContext = CkJsonObject_stringOf(jsonResponse,"\"@odata.context\"");
    odataEtag = CkJsonObject_stringOf(jsonResponse,"\"@odata.etag\"");
    customertypecode = CkJsonObject_IntOf(jsonResponse,"customertypecode");
    address1_latitude = CkJsonObject_IntOf(jsonResponse,"address1_latitude");
    birthdate = CkJsonObject_stringOf(jsonResponse,"birthdate");
    merged = CkJsonObject_BoolOf(jsonResponse,"merged");
    gendercode = CkJsonObject_IntOf(jsonResponse,"gendercode");
    territorycode = CkJsonObject_IntOf(jsonResponse,"territorycode");
    emailaddress1 = CkJsonObject_stringOf(jsonResponse,"emailaddress1");
    haschildrencode = CkJsonObject_IntOf(jsonResponse,"haschildrencode");
    preferredappointmenttimecode = CkJsonObject_IntOf(jsonResponse,"preferredappointmenttimecode");
    isbackofficecustomer = CkJsonObject_BoolOf(jsonResponse,"isbackofficecustomer");
    modifiedon = CkJsonObject_stringOf(jsonResponse,"modifiedon");
    v_owninguser_value = CkJsonObject_stringOf(jsonResponse,"_owninguser_value");
    importsequencenumber = CkJsonObject_IntOf(jsonResponse,"importsequencenumber");
    address1_composite = CkJsonObject_stringOf(jsonResponse,"address1_composite");
    address1_longitude = CkJsonObject_IntOf(jsonResponse,"address1_longitude");
    marketingonly = CkJsonObject_BoolOf(jsonResponse,"marketingonly");
    donotphone = CkJsonObject_BoolOf(jsonResponse,"donotphone");
    preferredcontactmethodcode = CkJsonObject_IntOf(jsonResponse,"preferredcontactmethodcode");
    educationcode = CkJsonObject_IntOf(jsonResponse,"educationcode");
    v_ownerid_value = CkJsonObject_stringOf(jsonResponse,"_ownerid_value");
    customersizecode = CkJsonObject_IntOf(jsonResponse,"customersizecode");
    firstname = CkJsonObject_stringOf(jsonResponse,"firstname");
    donotpostalmail = CkJsonObject_BoolOf(jsonResponse,"donotpostalmail");
    yomifullname = CkJsonObject_stringOf(jsonResponse,"yomifullname");
    address2_addresstypecode = CkJsonObject_IntOf(jsonResponse,"address2_addresstypecode");
    donotemail = CkJsonObject_BoolOf(jsonResponse,"donotemail");
    address2_shippingmethodcode = CkJsonObject_IntOf(jsonResponse,"address2_shippingmethodcode");
    fullname = CkJsonObject_stringOf(jsonResponse,"fullname");
    timezoneruleversionnumber = CkJsonObject_IntOf(jsonResponse,"timezoneruleversionnumber");
    address1_addressid = CkJsonObject_stringOf(jsonResponse,"address1_addressid");
    address2_freighttermscode = CkJsonObject_IntOf(jsonResponse,"address2_freighttermscode");
    statuscode = CkJsonObject_IntOf(jsonResponse,"statuscode");
    createdon = CkJsonObject_stringOf(jsonResponse,"createdon");
    address1_stateorprovince = CkJsonObject_stringOf(jsonResponse,"address1_stateorprovince");
    lastname = CkJsonObject_stringOf(jsonResponse,"lastname");
    donotsendmm = CkJsonObject_BoolOf(jsonResponse,"donotsendmm");
    donotfax = CkJsonObject_BoolOf(jsonResponse,"donotfax");
    leadsourcecode = CkJsonObject_IntOf(jsonResponse,"leadsourcecode");
    address1_country = CkJsonObject_stringOf(jsonResponse,"address1_country");
    versionnumber = CkJsonObject_IntOf(jsonResponse,"versionnumber");
    address1_line1 = CkJsonObject_stringOf(jsonResponse,"address1_line1");
    creditonhold = CkJsonObject_BoolOf(jsonResponse,"creditonhold");
    telephone1 = CkJsonObject_stringOf(jsonResponse,"telephone1");
    v_owningbusinessunit_value = CkJsonObject_stringOf(jsonResponse,"_owningbusinessunit_value");
    address3_addressid = CkJsonObject_stringOf(jsonResponse,"address3_addressid");
    donotbulkemail = CkJsonObject_BoolOf(jsonResponse,"donotbulkemail");
    v_modifiedby_value = CkJsonObject_stringOf(jsonResponse,"_modifiedby_value");
    followemail = CkJsonObject_BoolOf(jsonResponse,"followemail");
    shippingmethodcode = CkJsonObject_IntOf(jsonResponse,"shippingmethodcode");
    v_createdby_value = CkJsonObject_stringOf(jsonResponse,"_createdby_value");
    address1_city = CkJsonObject_stringOf(jsonResponse,"address1_city");
    donotbulkpostalmail = CkJsonObject_BoolOf(jsonResponse,"donotbulkpostalmail");
    v_parentcustomerid_value = CkJsonObject_stringOf(jsonResponse,"_parentcustomerid_value");
    contactid = CkJsonObject_stringOf(jsonResponse,"contactid");
    participatesinworkflow = CkJsonObject_BoolOf(jsonResponse,"participatesinworkflow");
    statecode = CkJsonObject_IntOf(jsonResponse,"statecode");
    overriddencreatedon = CkJsonObject_stringOf(jsonResponse,"overriddencreatedon");
    address2_addressid = CkJsonObject_stringOf(jsonResponse,"address2_addressid");
    address1_postalcode = CkJsonObject_stringOf(jsonResponse,"address1_postalcode");
    int_kloutscore = CkJsonObject_IntOf(jsonResponse,"int_kloutscore");
    spousesname = CkJsonObject_stringOf(jsonResponse,"spousesname");
    emailaddress3 = CkJsonObject_stringOf(jsonResponse,"emailaddress3");
    address3_telephone3 = CkJsonObject_stringOf(jsonResponse,"address3_telephone3");
    mobilephone = CkJsonObject_stringOf(jsonResponse,"mobilephone");
    utcconversiontimezonecode = CkJsonObject_stringOf(jsonResponse,"utcconversiontimezonecode");
    v_preferredserviceid_value = CkJsonObject_stringOf(jsonResponse,"_preferredserviceid_value");
    address3_shippingmethodcode = CkJsonObject_stringOf(jsonResponse,"address3_shippingmethodcode");
    int_twitterservice = CkJsonObject_stringOf(jsonResponse,"int_twitterservice");
    annualincome = CkJsonObject_stringOf(jsonResponse,"annualincome");
    fax = CkJsonObject_stringOf(jsonResponse,"fax");
    telephone3 = CkJsonObject_stringOf(jsonResponse,"telephone3");
    address1_primarycontactname = CkJsonObject_stringOf(jsonResponse,"address1_primarycontactname");
    address3_city = CkJsonObject_stringOf(jsonResponse,"address3_city");
    lastonholdtime = CkJsonObject_stringOf(jsonResponse,"lastonholdtime");
    address2_stateorprovince = CkJsonObject_stringOf(jsonResponse,"address2_stateorprovince");
    address2_line1 = CkJsonObject_stringOf(jsonResponse,"address2_line1");
    assistantphone = CkJsonObject_stringOf(jsonResponse,"assistantphone");
    lastusedincampaign = CkJsonObject_stringOf(jsonResponse,"lastusedincampaign");
    address3_freighttermscode = CkJsonObject_stringOf(jsonResponse,"address3_freighttermscode");
    pager = CkJsonObject_stringOf(jsonResponse,"pager");
    employeeid = CkJsonObject_stringOf(jsonResponse,"employeeid");
    managername = CkJsonObject_stringOf(jsonResponse,"managername");
    address1_name = CkJsonObject_stringOf(jsonResponse,"address1_name");
    department = CkJsonObject_stringOf(jsonResponse,"department");
    address3_country = CkJsonObject_stringOf(jsonResponse,"address3_country");
    address2_telephone1 = CkJsonObject_stringOf(jsonResponse,"address2_telephone1");
    address2_primarycontactname = CkJsonObject_stringOf(jsonResponse,"address2_primarycontactname");
    address2_latitude = CkJsonObject_stringOf(jsonResponse,"address2_latitude");
    address3_latitude = CkJsonObject_stringOf(jsonResponse,"address3_latitude");
    address2_postalcode = CkJsonObject_stringOf(jsonResponse,"address2_postalcode");
    entityimage_timestamp = CkJsonObject_stringOf(jsonResponse,"entityimage_timestamp");
    v_originatingleadid_value = CkJsonObject_stringOf(jsonResponse,"_originatingleadid_value");
    v_masterid_value = CkJsonObject_stringOf(jsonResponse,"_masterid_value");
    v_createdonbehalfby_value = CkJsonObject_stringOf(jsonResponse,"_createdonbehalfby_value");
    address3_postofficebox = CkJsonObject_stringOf(jsonResponse,"address3_postofficebox");
    subscriptionid = CkJsonObject_stringOf(jsonResponse,"subscriptionid");
    business2 = CkJsonObject_stringOf(jsonResponse,"business2");
    address3_county = CkJsonObject_stringOf(jsonResponse,"address3_county");
    address1_telephone2 = CkJsonObject_stringOf(jsonResponse,"address1_telephone2");
    address1_freighttermscode = CkJsonObject_stringOf(jsonResponse,"address1_freighttermscode");
    address3_addresstypecode = CkJsonObject_stringOf(jsonResponse,"address3_addresstypecode");
    address1_addresstypecode = CkJsonObject_stringOf(jsonResponse,"address1_addresstypecode");
    aging90_base = CkJsonObject_stringOf(jsonResponse,"aging90_base");
    address3_primarycontactname = CkJsonObject_stringOf(jsonResponse,"address3_primarycontactname");
    familystatuscode = CkJsonObject_stringOf(jsonResponse,"familystatuscode");
    home2 = CkJsonObject_stringOf(jsonResponse,"home2");
    int_kloutscoreservice = CkJsonObject_stringOf(jsonResponse,"int_kloutscoreservice");
    address2_utcoffset = CkJsonObject_stringOf(jsonResponse,"address2_utcoffset");
    aging60 = CkJsonObject_stringOf(jsonResponse,"aging60");
    telephone2 = CkJsonObject_stringOf(jsonResponse,"telephone2");
    yomimiddlename = CkJsonObject_stringOf(jsonResponse,"yomimiddlename");
    v_modifiedonbehalfby_value = CkJsonObject_stringOf(jsonResponse,"_modifiedonbehalfby_value");
    jobtitle = CkJsonObject_stringOf(jsonResponse,"jobtitle");
    address3_utcoffset = CkJsonObject_stringOf(jsonResponse,"address3_utcoffset");
    address1_telephone3 = CkJsonObject_stringOf(jsonResponse,"address1_telephone3");
    address2_line2 = CkJsonObject_stringOf(jsonResponse,"address2_line2");
    creditlimit_base = CkJsonObject_stringOf(jsonResponse,"creditlimit_base");
    address3_line1 = CkJsonObject_stringOf(jsonResponse,"address3_line1");
    address1_county = CkJsonObject_stringOf(jsonResponse,"address1_county");
    v_createdbyexternalparty_value = CkJsonObject_stringOf(jsonResponse,"_createdbyexternalparty_value");
    entityimageid = CkJsonObject_stringOf(jsonResponse,"entityimageid");
    processid = CkJsonObject_stringOf(jsonResponse,"processid");
    int_facebook = CkJsonObject_stringOf(jsonResponse,"int_facebook");
    description = CkJsonObject_stringOf(jsonResponse,"description");
    address1_fax = CkJsonObject_stringOf(jsonResponse,"address1_fax");
    address3_line2 = CkJsonObject_stringOf(jsonResponse,"address3_line2");
    externaluseridentifier = CkJsonObject_stringOf(jsonResponse,"externaluseridentifier");
    int_facebookservice = CkJsonObject_stringOf(jsonResponse,"int_facebookservice");
    aging30_base = CkJsonObject_stringOf(jsonResponse,"aging30_base");
    v_callback = CkJsonObject_stringOf(jsonResponse,"callback");
    emailaddress2 = CkJsonObject_stringOf(jsonResponse,"emailaddress2");
    address2_line3 = CkJsonObject_stringOf(jsonResponse,"address2_line3");
    managerphone = CkJsonObject_stringOf(jsonResponse,"managerphone");
    websiteurl = CkJsonObject_stringOf(jsonResponse,"websiteurl");
    exchangerate = CkJsonObject_stringOf(jsonResponse,"exchangerate");
    address1_telephone1 = CkJsonObject_stringOf(jsonResponse,"address1_telephone1");
    address3_composite = CkJsonObject_stringOf(jsonResponse,"address3_composite");
    address3_fax = CkJsonObject_stringOf(jsonResponse,"address3_fax");
    childrensnames = CkJsonObject_stringOf(jsonResponse,"childrensnames");
    v_owningteam_value = CkJsonObject_stringOf(jsonResponse,"_owningteam_value");
    numberofchildren = CkJsonObject_stringOf(jsonResponse,"numberofchildren");
    address2_postofficebox = CkJsonObject_stringOf(jsonResponse,"address2_postofficebox");
    aging90 = CkJsonObject_stringOf(jsonResponse,"aging90");
    aging60_base = CkJsonObject_stringOf(jsonResponse,"aging60_base");
    v_transactioncurrencyid_value = CkJsonObject_stringOf(jsonResponse,"_transactioncurrencyid_value");
    entityimage = CkJsonObject_stringOf(jsonResponse,"entityimage");
    v_modifiedbyexternalparty_value = CkJsonObject_stringOf(jsonResponse,"_modifiedbyexternalparty_value");
    paymenttermscode = CkJsonObject_stringOf(jsonResponse,"paymenttermscode");
    address3_name = CkJsonObject_stringOf(jsonResponse,"address3_name");
    ftpsiteurl = CkJsonObject_stringOf(jsonResponse,"ftpsiteurl");
    address1_shippingmethodcode = CkJsonObject_stringOf(jsonResponse,"address1_shippingmethodcode");
    v_preferredsystemuserid_value = CkJsonObject_stringOf(jsonResponse,"_preferredsystemuserid_value");
    address2_telephone2 = CkJsonObject_stringOf(jsonResponse,"address2_telephone2");
    v_slainvokedid_value = CkJsonObject_stringOf(jsonResponse,"_slainvokedid_value");
    address3_telephone1 = CkJsonObject_stringOf(jsonResponse,"address3_telephone1");
    nickname = CkJsonObject_stringOf(jsonResponse,"nickname");
    address1_postofficebox = CkJsonObject_stringOf(jsonResponse,"address1_postofficebox");
    v_preferredequipmentid_value = CkJsonObject_stringOf(jsonResponse,"_preferredequipmentid_value");
    assistantname = CkJsonObject_stringOf(jsonResponse,"assistantname");
    address2_country = CkJsonObject_stringOf(jsonResponse,"address2_country");
    v_accountid_value = CkJsonObject_stringOf(jsonResponse,"_accountid_value");
    address2_name = CkJsonObject_stringOf(jsonResponse,"address2_name");
    stageid = CkJsonObject_stringOf(jsonResponse,"stageid");
    address3_longitude = CkJsonObject_stringOf(jsonResponse,"address3_longitude");
    onholdtime = CkJsonObject_stringOf(jsonResponse,"onholdtime");
    address2_telephone3 = CkJsonObject_stringOf(jsonResponse,"address2_telephone3");
    address3_upszone = CkJsonObject_stringOf(jsonResponse,"address3_upszone");
    aging30 = CkJsonObject_stringOf(jsonResponse,"aging30");
    address2_upszone = CkJsonObject_stringOf(jsonResponse,"address2_upszone");
    address1_upszone = CkJsonObject_stringOf(jsonResponse,"address1_upszone");
    creditlimit = CkJsonObject_stringOf(jsonResponse,"creditlimit");
    salutation = CkJsonObject_stringOf(jsonResponse,"salutation");
    traversedpath = CkJsonObject_stringOf(jsonResponse,"traversedpath");
    accountrolecode = CkJsonObject_stringOf(jsonResponse,"accountrolecode");
    address1_utcoffset = CkJsonObject_stringOf(jsonResponse,"address1_utcoffset");
    governmentid = CkJsonObject_stringOf(jsonResponse,"governmentid");
    annualincome_base = CkJsonObject_stringOf(jsonResponse,"annualincome_base");
    address3_stateorprovince = CkJsonObject_stringOf(jsonResponse,"address3_stateorprovince");
    address3_postalcode = CkJsonObject_stringOf(jsonResponse,"address3_postalcode");
    address2_city = CkJsonObject_stringOf(jsonResponse,"address2_city");
    msdyn_gdproptout = CkJsonObject_stringOf(jsonResponse,"msdyn_gdproptout");
    company = CkJsonObject_stringOf(jsonResponse,"company");
    address1_line2 = CkJsonObject_stringOf(jsonResponse,"address1_line2");
    address2_longitude = CkJsonObject_stringOf(jsonResponse,"address2_longitude");
    int_twitter = CkJsonObject_stringOf(jsonResponse,"int_twitter");
    address3_telephone2 = CkJsonObject_stringOf(jsonResponse,"address3_telephone2");
    yomifirstname = CkJsonObject_stringOf(jsonResponse,"yomifirstname");
    address2_composite = CkJsonObject_stringOf(jsonResponse,"address2_composite");
    address2_county = CkJsonObject_stringOf(jsonResponse,"address2_county");
    suffix = CkJsonObject_stringOf(jsonResponse,"suffix");
    anniversary = CkJsonObject_stringOf(jsonResponse,"anniversary");
    v_parentcontactid_value = CkJsonObject_stringOf(jsonResponse,"_parentcontactid_value");
    address2_fax = CkJsonObject_stringOf(jsonResponse,"address2_fax");
    yomilastname = CkJsonObject_stringOf(jsonResponse,"yomilastname");
    preferredappointmentdaycode = CkJsonObject_stringOf(jsonResponse,"preferredappointmentdaycode");
    entityimage_url = CkJsonObject_stringOf(jsonResponse,"entityimage_url");
    address1_line3 = CkJsonObject_stringOf(jsonResponse,"address1_line3");
    v_defaultpricelevelid_value = CkJsonObject_stringOf(jsonResponse,"_defaultpricelevelid_value");
    v_slaid_value = CkJsonObject_stringOf(jsonResponse,"_slaid_value");
    middlename = CkJsonObject_stringOf(jsonResponse,"middlename");
    address3_line3 = CkJsonObject_stringOf(jsonResponse,"address3_line3");
    timespentbymeonemailandmeetings = CkJsonObject_stringOf(jsonResponse,"timespentbymeonemailandmeetings");


    CkRest_Dispose(rest);
    CkStringBuilder_Dispose(sbResponseBody);
    CkJsonObject_Dispose(jsonResponse);

    }

Sample JSON Response Body

{
  "@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
}