Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make the REST call to create a new Work Order Task that is child to an existing Work Order?

scha
Kilo Explorer

We are in version: Eureka and below is our REST call -

URI

https://<service-now instance>/api/now/table/wm_task

HTTP Action

POST

JSON Request

{

"parent": "WO0010003",

"short_description": "wm task insert test",

"comments": "wm task insert test"

}

This request creates the new task but does not associate the new WOT… task to my desired Work Order - WO0010003. What are we missing?

Thanks!

5 REPLIES 5

scha
Kilo Explorer

One thing to note is.. every time I make the call to create the WOT by https://<service-now instance>/api/now/table/wm_task as a child to a already existing WO. I see an extra WO and a WOT being created with parent child relationship. And an error message on the GUI window as - "



Short description must be filled in to exit Draft phase


"


This is probably because the extra WOT created by the system has blank/no "short description"