Close Work Order Task (WOT) from postman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi Team,
I have requirement where I want to close the WOT from the postman. But it is not working as expected.
Table API - https://<instance>.service-now.com/api/now/table/wm_task/26df5640472a2210845d03d8c26d439c
Header:
Authorization : Basic Y2FyZWFyOkNhcmVhckAxMjM0
Content-type : application/json
Accept: application/json
Payload (body): raw->
Error:
{
"error": {
"message": "Operation Failed",
"detail": "Operation against file 'wm_task' was aborted by Business Rule 'ValidateChanges^611ee0408722e6103582404e0ebb3501'. Business Rule Stack:ValidateChanges"
},
"status": "failure"
}
Can anyone please guide me, how can I achieve this task to close the Work Order Task from postman? The WOT which I am trying to close is in "Assigned" state.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Did you check the Business Rule?
ValidateChanges (611ee0408722e6103582404e0ebb3501)
Business Rule Stack: ValidateChanges
Also, are you able to close the WOT from the native view manually? If yes, then the issue might not be with Postman, and the same steps may need to be followed in Postman as well.
I think the WOT first needs to be moved out of the Assigned state and then closed.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Hi @Dr Atul G- LNG ,
I cannot change the state of the WOT manually.
The field is read only. And yes, I am able to close the task in native view. First I assigned WOT to myself, then clicked on Start Travel, the Start Work and then entered work notes and clicked on closed complete. Manually it is working. But with postman I am getting this response now
new output :
{
"result": {
"parent": {
"link": "https://<instance>.service-now.com/api/now/table/task/990ea4408722e6103582404e0ebb35e7",
"value": "990ea4408722e6103582404e0ebb35e7"
},
"window_end": "",
"watch_list": "",
"upon_reject": "cancel",
"sys_updated_on": "2025-12-18 09:36:40",
"approval_history": "",
"skills": "",
"number": "WOT0010062",
"estimated_onsite_arrival_buffer_duration": "",
"previous_agent": "",
"expected_travel_start": "2025-06-30 07:48:46",
"state": "16",
"sys_created_by": "Viren.d",
"work_order": {
"link": "https://<instance>.service-now.com/api/now/table/wm_order/990ea4408722e6103582404e0ebb35e7",
"value": "990ea4408722e6103582404e0ebb35e7"
},
"knowledge": "false",
"order": "",
"offline_device_timestamp": "",
"cmdb_ci": "",
"contract": "",
"impact": "3",
"scheduling_preference": "prioritize_rating",
"active": "true",
"actual_work_duration": "",
"work_notes_list": "",
"priority": "4",
"sys_domain_path": "/",
"onsite_arrivl_geofence_distance_unit": "",
"schedule_lock": "false",
"display_work_end": "2025-06-30 09:48:46",
"display_travel_start": "2025-06-30 07:48:46",
"business_duration": "",
"group_list": "",
"allow_assignment_override": "false",
"approval_set": "",
"needs_attention": "false",
"universal_request": "",
"template": "",
"short_description": "testing 25.02 - 30/06",
"acknowledged_on": "",
"correlation_display": "",
"work_start": "",
"additional_assignee_list": "",
"actual_travel_start": "",
"estimated_travel_duration": "1970-01-01 01:00:00",
"assigned_vendor": "",
"service_offering": "",
"sys_class_name": "wm_task",
"closed_by": "",
"follow_up": "",
"estimated_end": "2025-06-30 09:48:46",
"vendor_reference": "",
"dispatched_on": "2025-06-30 06:48:46",
"reassignment_count": "1",
"allow_work_overtime": "false",
"ignore_travel": "false",
"assigned_to": {
"link": "https://<instance>.service-now.com/api/now/table/sys_user/800b174138d089c868d09de320f9833b",
"value": "800b174138d089c868d09de320f9833b"
},
"sla_due": "",
"opened_for": "",
"scheduling_method": "manual",
"comments_and_work_notes": "",
"install_base_item": "",
"has_appointment": "false",
"acceptance_due_date": "",
"substate": "",
"escalation": "0",
"upon_approval": "proceed",
"correlation_id": "",
"asset": "",
"made_sla": "true",
"onsite_arrival_geofence_radius": "0.5",
"appointment": "",
"task_effective_number": "WOT0010062",
"sys_updated_by": "carear",
"check_in_status": "",
"opened_by": {
"link": "https://<instance>.service-now.com/api/now/table/sys_user/cec914301badd9d066e20f22604bcb53",
"value": "cec914301badd9d066e20f22604bcb53"
},
"user_input": "",
"sys_created_on": "2025-06-30 06:48:19",
"sys_domain": {
"link": "https://<instance>.service-now.com/api/now/table/sys_user_group/global",
"value": "global"
},
"route_reason": "",
"is_fixed_window": "false",
"closed_at": "",
"work_type": "",
"window_start": "2025-06-30 06:48:19",
"business_service": "",
"time_worked": "",
"expected_start": "2025-06-30 08:48:46",
"opened_at": "2025-06-30 06:48:19",
"actual_onsite_arrival_buffer_duration": "",
"work_end": "",
"work_notes": "",
"acceptance_duration": "",
"initiated_from": "",
"home_travel_duration": "1970-01-01 01:00:00",
"assignment_group": {
"link": "https://<instance>.service-now.com/api/now/table/sys_user_group/019ad92ec7230010393d265c95c260dd",
"value": "019ad92ec7230010393d265c95c260dd"
},
"under_warranty": "false",
"actual_travel_duration": "",
"description": "",
"calendar_duration": "",
"close_notes": "",
"dispatch_group": {
"link": "https://<instance>.service-now.com/api/now/table/sys_user_group/019ad92ec7230010393d265c95c260dd",
"value": "019ad92ec7230010393d265c95c260dd"
},
"sys_id": "611ee0408722e6103582404e0ebb3501",
"contact_type": "",
"actual_onsite_arrival": "",
"urgency": "3",
"company": "",
"activity_due": "",
"action_status": "",
"comments": "",
"approval": "not requested",
"has_follow_on": "false",
"due_date": "",
"sys_mod_count": "20",
"sys_tags": "",
"estimated_work_duration": "1970-01-01 01:00:00",
"routing_in_progress": "false",
"x_care3_carear_fsm_carear_instruct_experience": "",
"location": "",
"cloned_from": ""
}
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
The same needs to be done via Postman as well. Set the state first and then close it.
Did you check which Business Rule is causing the issue?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************