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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Creating a work order using API (online)

(1) ShareShare
ReportReport
Posted on by
I am trying to create a work order by using API post method but it gives me a 400 error ( bad request). 
 
the error msg as follow: 
{/error/:{/code/:/0x80048d19/,/message/:/Error identified in Payload provided by the user for Entity ://'msdyn_workorders//'.............}
 
I am using the following code:
url = https://Dynamic365-instiance/api/data/v9.2/msdyn_workorders/
headers = {
    /Content-Type/: /application/json; charset=utf-8/,
    /Accept/: /application/json/,
}
payload = {
    /msdyn_name/: /Work Order Name/,
    /msdyn_serviceaccount@odata.etag/: //accounts(bda958a1-7ff7-4f69-9812-83d77efe0cc8)/,
    /msdyn_primaryincidentdescription/: /Issue description/,
    /msdyn_serviceTerritory@odata.etag/: //territories(6ad7533b-8e0a-ea11-a811-000d3a1b1f2c)/,
}
requests.request(/POST/, url, headers=headers, data=payload)
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 160

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 65 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 51 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans