Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Unable to remove Dynamics 365 Appointment's Optional and Required fields value using Web API

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to remove Required and Optional Parties from an Appointment using Dynamics 365 Web API. I have tried "activityparties" entity to delete the values but no luck.

Request:

DELETE
xxxxxx.crm.dynamics.com/.../activitypointer_activity_parties_required(79ea68eb-4304-e911-8147-3863bb2eb450)


Response:400 Bad Request

{
  "error": {
    "code": "",
    "message": "Request message has unresolved parameters.",
    "innererror": {
      "message": "Request message has unresolved parameters.",
      "type": "Microsoft.Crm.CrmHttpException",
      "stacktrace": "   at Microsoft.Crm.Extensibility.OData.CrmODataRoutingConvention.SelectAction(ODataPath odataPath, HttpControllerContext controllerContext, ILookup`2 actionMap)\r\n   at System.Web.OData.Routing.ODataActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n   at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"
    }
  }
}


Any Idea?




  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to remove Dynamics 365 Appointment's Optional and Required fields value using Web API

    No, It's working with Optional and Required, it's working with Regarding field of Appointment. When I try with Optional and Required, API Shows below error:

    }
      "error": {
        "code": "",
        "message": "The requested resource does not support http method 'DELETE'."
      }
    }

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Unable to remove Dynamics 365 Appointment's Optional and Required fields value using Web API

    Hi Vinir,

    If you want to clear the field value, you should add "/fieldname" after your request header.

    Please refer to the following sample.

    community30.png

    Hope it helps.

    Best Regards

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans