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 :
Service | Customer Service, Contact Center, Fie...
Answered

Web API Case creation POSTMAN

(1) ShareShare
ReportReport
Posted on by 5

Hi all,

I am having issues with the Case (incedent) creation. As for now I was able to create an account but I need to be able to create cases. I have my OAuth connected properly, I have all the responses, I am able to create an account. I need a case. Please see request and response:

Request to: MYORG.crm4.dynamics.com/.../incidents (Bearer token is okay)

json:

{
"name": "API Title"
}

Responce:

{
    "error": {
        "code""0x8006088a",
        "message""Resource not found for the segment 'incident'.",
        "innererror": {
            "message""Resource not found for the segment 'incident'.",
            "type""Microsoft.OData.UriParser.ODataUnrecognizedPathException",
            "stacktrace""   at Microsoft.OData.UriParser.ODataPathParser.CreateDynamicPathSegment(ODataPathSegment previous, String identifier, String parenthesisExpression)\r\n   at Microsoft.OData.UriParser.ODataPathParser.CreateFirstSegment(String segmentText)\r\n   at Microsoft.OData.UriParser.ODataPathParser.ParsePath(ICollection`1 segments)\r\n   at Microsoft.OData.UriParser.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration)\r\n   at Microsoft.OData.UriParser.ODataUriParser.Initialize()\r\n   at System.Web.OData.Routing.DefaultODataPathHandler.Parse(String serviceRoot, String odataPath, IServiceProvider requestContainer, Boolean template)\r\n   at System.Web.OData.Routing.DefaultODataPathHandler.Parse(String serviceRoot, String odataPath, IServiceProvider requestContainer)\r\n   at Microsoft.Crm.Extensibility.ODataV4.Routing.CrmODataPathHandler.Parse(String serviceRoot, String odataPath, IServiceProvider requestContainer)"
        }
    }
}
Please advise 
I have the same question (0)
  • Rdobryanskyy1 Profile Picture
    5 on at

    {
    "title": "API Title"
    }

    This request doesn't work as well.

  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at

    Hy Partner,

    Try with incidents in the URL. Your URL should be :-

    https://<OrgURL>/api/data/v9.1/incidents

    It should be collection schema name of an entity

     

    Hope this helps.

    Best regards,

    Ankit

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Rdobryanskyy1 Profile Picture
    5 on at

    I have this:

    {

       "error": {

           "code": "0x80044410",

           "message": "You should specify a parent contact or account.",

           "innererror": {

               "message": "You should specify a parent contact or account.",

    What is the format of specifying the account or contact?

  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at

    you can use below :-

    { "tile":"Sample Case", "primarycontactid@odata.bind":"/contacts(<Record Id of contact>)" } as a request you can send. Select the method as POST.

     

    Hope this helps.

    Best regards,

    Ankit

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Rdobryanskyy1 Profile Picture
    5 on at

    ok now I got this:

    {

       "error": {

           "code": "0x8004440f",

           "message": "CustomerId is missing and required",

           "innererror": {

               "message": "CustomerId is missing and required",

    Sorry I am really new to REST API

  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at

    In place of primarycontactid can you write CustomerId and chek please

  • Verified answer
    Ankit Sabharwal Profile Picture
    on at

    I believe this can help :-

    "customerid_contact@odata.bind":"/contacts(<Record GUID>)

  • Verified answer
    Ankit Sabharwal Profile Picture
    on at

    Please use just above approach and if it works , mark this thread as verified.

  • Rdobryanskyy1 Profile Picture
    5 on at

    You are FANTASTIC!!!! Thank you!!!!!

  • Ankit Sabharwal Profile Picture
    on at

    Please mark the thread as verified!!!!

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans