Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

CRM do not support direct update of Entity Reference properties, Use Navigation properties instead. Error in creating quote based on opportunity.

Posted on by 5

I'm getting an error creating a quote based on an opportunity. I've shared the headers and request body I'm sending in Postman.

Request url: {organization_url}/api/data/v9.2/quotes

HTTP request method: POST

Headers:

'Content-Type': 'application/json; charset=utf-8',
'OData-MaxVersion': '4.0',
'OData-Version': '4.0',
Accept: 'application/json',
Authorization: 'Bearer' + {accesstoken}

Request Body (in Postman):

{
    "name""OPP-0007514",
    "totalamount"123,
    "_owningbusinessunit_value":"304*****-39a4-e***-a89b-00******ac12",
    "opportunityid@odata.bind""/opportunities(a34*****-9abe-4***-9139-58*****7a747)"
}
Removing "_owningbusinessunit_value" key from the body gives an error: "The owner was not provided", So I've added that in the body.
4846.Screenshot-_2800_6_2900_.png
  • Yousuf59 Profile Picture
    Yousuf59 5 on at
    RE: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead. Error in creating quote based on opportunity.

    I'm getting 405 error.

    code: '0x8004023b', message: 'Invalid ownerIdType = 7'

  • Yousuf59 Profile Picture
    Yousuf59 5 on at
    RE: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead. Error in creating quote based on opportunity.

    I'm getting the same error with '_ownerid_value'.

  • Suggested answer
    RE: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead. Error in creating quote based on opportunity.

    try

    "_ownerid_value@data.bind": "/businessunits(304*****-39a4-e***-a89b-00******ac12)",

  • Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: CRM do not support direct update of Entity Reference properties, Use Navigation properties instead. Error in creating quote based on opportunity.

    Hi,

    You should map _ownerid_value instead of _owingbusibessunit_value

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans