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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 21 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans