web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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 
  • Rdobryanskyy1 Profile Picture
    5 on at

    {
    "title": "API Title"
    }

    This request doesn't work as well.

  • Suggested answer
    Ankit Sabharwal Profile Picture
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee on at

    In place of primarycontactid can you write CustomerId and chek please

  • Verified answer
    Ankit Sabharwal Profile Picture
    Microsoft Employee on at

    I believe this can help :-

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

  • Verified answer
    Ankit Sabharwal Profile Picture
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 42

#2
11manish Profile Picture

11manish 21 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans