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 :
Microsoft Dynamics CRM (Archived)

Unable to remove Dynamic 365 Appointment's regardingobjectid value using Web API

(0) ShareShare
ReportReport
Posted on by
I'm trying to remove value of field regardingobjectid from a appointment entity using Microsoft Dynamic 365 Web API. but not able to but it shows error below:

"error":
{ "code": "", "message": "The property 'regardingobjectid' does not exist on type 'Microsoft.Dynamics.CRM.appointment'. Make sure to only use property names that are defined by the type.

Request

PATCH xxxxxxx.crm.dynamics.com/.../appointments(9de8ba18-8303-e911-8147-3863bb2eb450)

Headers:

Content-Type: application/json
Authorization: Bearer *Token*

Body:

{
  "subject": "Check Updates",
  "ownerid@odata.bind": "/systemusers(51d09106-22b6-e811-8143-3863bb2ec140)",
  "createdby@odata.bind": "/systemusers(51d09106-22b6-e811-8143-3863bb2ec140)",
  "location": "",
  "description": "nuldasddsadsal",
  "statecode": 3,
  "scheduledstart": "2018-12-19T06:45:00Z",
  "scheduledend": "2018-12-19T07:15:00Z",
  "isalldayevent": false,
  "regardingobjectid": null,
  "activitypointer_activity_parties": [
    {
      "partyid_account@odata.bind": "/accounts(4a2612e2-664b-e411-93ff-0050569469bd)",
      "participationtypemask": "6"
    }
  ]
}
 

*This post is locked for comments

I have the same question (0)
  • Sreevalli Profile Picture
    3,256 on at

    Hi,

    You have to use refarance entity name alone with regardingobjectid, see example

    "regardingobjectid_quote@odata.bind"] = "/quotes(" + quoteId + ")"; //Regarding is quote

  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    Like I answered in SO, you have to delete the associated link to remove the lookup value using web api.

    stackoverflow.com/.../7920473

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Sreevalli,

    After some research below request works well:

    DELETE: xxxxxxx.crm.dynamics.com/.../_regardingobjectid_value

    Thanks

    Vinir

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans