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,...
Answered

Unable to assign ownerid/team for a custom entity.

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I am running into a problem when trying to update/assign the ownerid to a team id for CUSTOM entities only. It is nto problem when I do this to an Account or Contact entity, but when I try the same calls for a custom entity, I get a 400 message. This only occurs when updating the ownerid for the custom entity. i am able to update the other custom entity fields without issue if I omit the owner id. 

This works for an Account entity:

URI: myorg.crm.dynamics.com/.../accounts(1a265a19-76cb-eb11-bacc-0022481d07ab)
JSON:
{
"accountnumber": "12",
"name": "Account Name",
"telephone1": "3331234567",
"emailaddress1": "demo@myorg.us",
"new_mbaccountrep": "Rep",
"new_accounttype": "100000001",
"statuscode": 1,
"primarycontactid@odata.bind": "contacts(f4154341-44cb-eb11-bacc-0022481e3102)",
"ownerid@odata.bind": "teams(d9653907-c799-eb11-b1ac-000d3a9dfae9)"
}

However, the same type of lookup on a custom entity fails:


URI: myorg.crm.dynamics.com/.../new_entities(1a265a19-76cb-eb11-bacc-0022481d07ab)
JSON:
{
"new_format": "Format",
"new_frequency": "Frequency",
"new_inactivewarning": false,
"new_myorgid": "12",
"new_name": "Name",
"new_publicationid": "1a265a19-76cb-eb11-bacc-0022481d07ab",
"ownerid@odata.bind": "teams(d9653907-c799-eb11-b1ac-000d3a9dfae9)"
}

Server returned HTTP response code: 400 for URL: https://myorg.crm.dynamics.com/api/data/v9.0/new_publications(1a265a19-76cb-eb11-bacc-0022481d07ab)?$select=createdon

If I leave out the ownerid, it works just fine:

URI: myorg.crm.dynamics.com/.../new_entities(1a265a19-76cb-eb11-bacc-0022481d07ab)
JSON:
{
"new_format": "Format",
"new_frequency": "Frequency",
"new_inactivewarning": false,
"new_myorgid": "12",
"new_name": "Name",
"new_publicationid": "1a265a19-76cb-eb11-bacc-0022481d07ab"
}

Is there some setting or security constraint that needs to be adjust?

Thanks

I have the same question (0)
  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at

    Hi JDCv2.0,

    Please check whether the owning team (one you're assigning) has a role with sufficient create permission for this custom entity.

  • JDCv2.0 Profile Picture
    25 on at

    Thank you, this was exactly the problem. Added the proper permissions and now the updates work as expected. 

    </jdc>

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 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans