Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Unable to PATCH contacts through Web API using Postman tool. Getting error: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.

(0) ShareShare
ReportReport
Posted on by 15

URL: https://***eisy.api.crm4.dynamics.com/api/data/v9.1/contacts(fb2656ec-f023-eb11-a813-000d3a25bdee)

Method: PATCH

Authorization: Bearer {Token}

Body:

{
    "contactid":"fb2656ec-f023-eb11-a813-000d3a25bdee",
    "customertypecode": 1,
    "mobilephone": "99999999999",
    "merged": false,
    "gendercode": 1,
    "territorycode": 1,
    "emailaddress1": "insynctest@yopmail.com",
    "haschildrencode": 1,
    "edm_totalamountpurchased_state": 1,
    "exchangerate": 1.0000000000,
    "preferredappointmenttimecode": 1,
    "fr_type": 100000002,
    "address2_shippingmethodcode": 1,
    "isbackofficecustomer": false,
    "msdyn_orgchangestatus": 0,
    "leadsourcecode": 1,
    "_owninguser_value": "482685d6-4115-e811-a9b7-000d3a254cea",
    "edm_numberoforders_state": 1,
    "address1_composite": "Jonas Building\r\nHarrison Street\r\nHarrison Street, Riyadh 5000\r\nSaudi Arabia",
    "lastname": "Test",
    "donotpostalmail": false,
    "marketingonly": false,
    "fr_offshoremodified": true,
    "donotphone": false,
    "preferredcontactmethodcode": 1,
    "educationcode": 1,
   "ownerid@odata.bind": "/systemusers(482685d6-4115-e811-a9b7-000d3a254cea)",
    "fr_dubaimodified": true,
    "customersizecode": 1,
    "firstname": "Insync",
    "edm_lastpurchasedate_state": 1,
    "fr_certificateoforigin": false,
    "yomifullname": "Insync Test",
    "address2_addresstypecode": 1,
    "donotemail": false,
    "fullname": "Insync Test",
    "address1_addressid": "0deea12d-0fd8-42fa-bdeb-8a8323b2f3a3",
    "msdyn_gdproptout": false,
    "address2_freighttermscode": 1,
    "statuscode": 1,
    "edm_client": false,
    "address1_stateorprovince": "Riyadh",
    "donotsendmm": false,
    "donotfax": false,
    "edm_lead": true,
    "edm_deluchymodified": true,
    "donotbulkpostalmail": false,
    "_edm_customerextensionid_value": "272756ec-f023-eb11-a813-000d3a25bdee",
    "address1_country": "Saudi Arabia",
    "address1_line2": "Jonas Building",
    "address1_line3": "Harrison Street",
    "creditonhold": false,
    "edm_totalamountpurchased": 0.0000000000,
    "address3_addressid": "83897bfd-a51d-42f1-b3d5-3588aaede10b",
    "edm_lastpurchasedate_date": "2020-11-11T07:38:49Z",
    "donotbulkemail": false,
    "fr_reducedinvoice": false,
    "followemail": true,
    "shippingmethodcode": 1,
    "address1_city": "Harrison Street",
    "fax": "8989",
    "fr_modified": true,
    "participatesinworkflow": false,
    "statecode": 0,
    "_owningbusinessunit_value": "353c6a65-6610-e811-a840-000d3a265f5c",
    "address2_addressid": "bfbac55a-e06a-43a9-8168-b9e2af9c265a",
    "address1_postalcode": "5000",
    "edm_numberoforders": 0
   
}

Response:
{
"error": {
"code": "0x0",
"message": "CRM do not support direct update of Entity Reference properties, Use Navigation properties instead."
}
}

Please help me out with the correct Request body and url.

This is urgent.

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Unable to PATCH contacts through Web API using Postman tool. Getting error: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.

    Hi,

    As suggested in above post it seems to be permission issue.

    Your code is working fine.

    Please provide read permission on edm_customerextension entity and it will work.

    Please mark my answer verified if i were helpful

  • Joana Pinto Profile Picture
    740 on at
    RE: Unable to PATCH contacts through Web API using Postman tool. Getting error: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.

    Hi,

    You are missing the permission of Read on the entity 'edm_customerextension' for the user with that GUID. Give the permission and the error should disappear.

  • Amrita123 Profile Picture
    15 on at
    RE: Unable to PATCH contacts through Web API using Postman tool. Getting error: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.

    I tried removing   "_owningbusinessunit_value": "353c6a65-6610-e811-a840-000d3a265f5c" also but it showed this respose:

    {

       "error": {

           "code": "0x80040265",

           "message": "Principal user (Id=b736e4a2-ef1f-eb11-a813-0***aafe47c, type=8, roleCount=1, privilegeCount=1003, accessMode=4), is missing prvReadedm_customerextension privilege (Id=eda0dffd-b77e-4a8f-924d-425386d30bfa) on OTC=10393 for entity 'edm_customerextension'. context.Caller=b7***4a2-ef1f-eb11-a813-000d3aafe47c. Or identityUser.SystemUserId=4ac0142f-***7-46e6-83c1-4bc05b70f2fb, identityUser.Privileges.Count=3894, identityUser.Roles.Count=0 is missing prvReadedm_customerextension privilege (Id=ed***ffd-b77e-4a8f-924d-425386d30bfa) on OTC=10393 for entity 'edm_customerextension'."

       }

    }

  • Amrita123 Profile Picture
    15 on at
    RE: Unable to PATCH contacts through Web API using Postman tool. Getting error: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.

    Thanks for you response. I tried with this packet after removing the id related field. It is still showing the same error.

    Body:

    {
        "customertypecode": 1,
        "mobilephone": "99999999999",
        "merged": false,
        "gendercode": 1,
        "territorycode": 1,
        "emailaddress1": "insynctest@yopmail.com",
        "haschildrencode": 1,
        "edm_totalamountpurchased_state": 1,
        "exchangerate": 1.0000000000,
        "preferredappointmenttimecode": 1,
        "fr_type": 100000002,
        "address2_shippingmethodcode": 1,
        "isbackofficecustomer": false,
        "msdyn_orgchangestatus": 0,
        "leadsourcecode": 1,
        "edm_numberoforders_state": 1,
        "address1_composite": "Jonas Building\r\nHarrison Street\r\nHarrison Street, Riyadh 5000\r\nSaudi Arabia",
        "lastname": "Test",
        "donotpostalmail": false,
        "marketingonly": false,
        "fr_offshoremodified": true,
        "donotphone": false,
        "preferredcontactmethodcode": 1,
        "educationcode": 1,
        "ownerid@odata.bind": "/systemusers(482685d6-4115-e811-a9b7-000d3a254cea)",
        "fr_dubaimodified": true,
        "customersizecode": 1,
        "firstname": "Insync",
        "edm_lastpurchasedate_state": 1,
        "fr_certificateoforigin": false,
        "yomifullname": "Insync Test",
        "address2_addresstypecode": 1,
        "donotemail": false,
        "fullname": "Insync Test",
        "msdyn_gdproptout": false,
        "address2_freighttermscode": 1,
        "statuscode": 1,
        "edm_client": false,
        "address1_stateorprovince": "Riyadh",
        "donotsendmm": false,
        "donotfax": false,
        "edm_lead": true,
        "edm_deluchymodified": true,
        "donotbulkpostalmail": false,
        "address1_country": "Saudi Arabia",
        "address1_line2": "Jonas Building",
        "address1_line3": "Harrison Street",
        "creditonhold": false,
        "edm_totalamountpurchased": 0.0000000000,
        "donotbulkemail": false,
        "fr_reducedinvoice": false,
        "followemail": true,
        "shippingmethodcode": 1,
        "address1_city": "Harrison Street",
        "fax": "8989",
        "fr_modified": true,
        "participatesinworkflow": false,
        "statecode": 0,
        "_owningbusinessunit_value": "353c6a65-6610-e811-a840-000d3a265f5c",
        "address1_postalcode": "5000",
        "edm_numberoforders": 0
    }
    Error:
    {
        "error": {
            "code": "0x0",
            "message": "CRM do not support direct update of Entity Reference properties, Use Navigation properties instead."
        }
    }
  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Unable to PATCH contacts through Web API using Postman tool. Getting error: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.

    Hi,

    Why do you need below property

    "_owninguser_value": "482685d6-4115-e811-a9b7-000d3a254cea"

    when you have already added below

    "ownerid@odata.bind": "/systemusers(482685d6-4115-e811-a9b7-000d3a254cea)"

    likewise you will have to remove or replace any id field.

    you don't need to set address ID field

    "address3_addressid": "83897bfd-a51d-42f1-b3d5-3588aaede10b"

    this will done by CRM internally. You just need to pass address related fields Text fields only.

    Please mark my answer verified if i were helpful

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 43

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans