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 
  • NorvilleRogers Profile Picture
    5 on at
    RE: Web API Case creation POSTMAN

    Thank you.  This was a very helpful answer Ankit.   Also, thank you @Rdobryanskyy1 for posting this question.

  • Ankit Sabharwal Profile Picture
    on at
    RE: Web API Case creation POSTMAN

    Please mark the thread as verified!!!!

  • Rdobryanskyy1 Profile Picture
    5 on at
    RE: Web API Case creation POSTMAN

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

  • Verified answer
    Ankit Sabharwal Profile Picture
    on at
    RE: Web API Case creation POSTMAN

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

  • Verified answer
    Ankit Sabharwal Profile Picture
    on at
    RE: Web API Case creation POSTMAN

    I believe this can help :-

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

  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at
    RE: Web API Case creation POSTMAN

    In place of primarycontactid can you write CustomerId and chek please

  • Rdobryanskyy1 Profile Picture
    5 on at
    RE: Web API Case creation POSTMAN

    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
    RE: Web API Case creation POSTMAN

    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
    RE: Web API Case creation POSTMAN

    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
    RE: Web API Case creation POSTMAN

    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.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans