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.
{
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.
{
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
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}})"
}
you can use my tool Dataverse REST Builder to create a request against Web API
André Arnaud de Cal... 291,431 Super User 2024 Season 2
Martin Dráb 230,503 Most Valuable Professional
nmaenpaa 101,156