Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by Microsoft Employee
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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to remove Dynamic 365 Appointment's regardingobjectid value using Web API

    Hi Sreevalli,

    After some research below request works well:

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

    Thanks

    Vinir

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Unable to remove Dynamic 365 Appointment's regardingobjectid value using Web API

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

    stackoverflow.com/.../7920473

  • Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Unable to remove Dynamic 365 Appointment's regardingobjectid value using Web API

    Hi,

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

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

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans