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

JSON create new incident (case) against an account using the web API

(0) ShareShare
ReportReport
Posted on by 15

Hi, 

Could someone help me create a JSON script that creates a new case against a account using the WEB API?

I have created the simple script I can't figure out what I have wrong.

{

    "title":"Test Web API Case",
    "accountnumber@odata.bind":"/accounts(xxxxxxxxx)"
}
Error:
An undeclared property 'accountnumber' which only has property annotations in the payload but no property value was found in the payload.
What am I missing
I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you can use my tool Dataverse REST Builder to create a request against Web API

  • D365-221 Profile Picture
    15 on at

    Thank you, this has helped so much, shame it doesn't have a JSON Format unless I am missing something but give you the details you need to figure it out.

    Working code:

    {

       "title":"Test Web API Case",

       "customerid_account@odata.bind":"/accounts({{ID}})"

    }

  • Guido Preite Profile Picture
    54,086 Moderator on at

    the "record" variable that is generated inside the code is a JSON format. if you need to have as a string you can do a

    console.log(JSON.stringify(record, null, "\t"));

    or you can export the collection to Postman, if you open it inside Postman you will see the JSON inside the Body tab

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