web
You’re offline. This is a read only version of the page.
close
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

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

(0) ShareShare
ReportReport
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
I have the same question (0)
  • Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    You should map _ownerid_value instead of _owingbusibessunit_value

  • Suggested answer
    EnterCommunityScreenName Profile Picture
    15 on at

    try

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

  • Yousuf59 Profile Picture
    5 on at

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

  • Yousuf59 Profile Picture
    5 on at

    I'm getting 405 error.

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans