- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
When I use the Table API via rest api explorer on the wf_context table, the response is as follows:
{
"result": [
{
"ert_outlier_workflow_actions": "b69c7e18eb532100ec9a82810206fea4",
"parent": "",
"return_value": "",
"timezone": "",
"sys_updated_on": "2026-02-10 01:29:43",
"cumulated_avg_ert": "false",
"auto_start": "false",
"result": "",
"sys_id": "d4e25a583b47361462bc5541a3e45aca",
"requires_ert": "true",
"sys_updated_by": "xxxxxx",
"scratchpad": "",
"activity_count": "4",
"ert_long_running_actions": "51782761ac1464174baaeb9af4b9ae76,803b3c728f320100ec9a6441f0f923ef,b69c7e18eb532100ec9a82810206fea4",
"sys_created_on": "2026-02-10 01:29:43",
"stage_state": "",
"sys_domain": {
"link": "https://xxxxxx.service-now.com/api/now/table/sys_user_group/global",
"value": "global"
},
"without_current_wf_actions": "51782761ac1464174baaeb9af4b9ae76,b69c7e18eb532100ec9a82810206fea4",
"id": {
"link": "https://xxxxxxx.service-now.com/api/now/table/sys_attachment/18e25a583b47361462bc5541a3e45ac9",
"value": "18e25a583b47361462bc5541a3e45ac9"
},
"state": "finished",
"column_renderer": {
"link": "https://xxxxx.service-now.com/api/now/table/column_renderer/a56213111b030100adca1e094f0713ac",
"value": "a56213111b030100adca1e094f0713ac"
},
"started_by": {
"link": "https://xxxxx.service-now.com/api/now/table/sys_user/42f6a1394f952a40fae8d0311310c79f",
"value": "42f6a1394f952a40fae8d0311310c79f"
},
"sys_created_by": "xxxx",
"table": "sys_attachment",
"workflow": {
"link": "https://xxxxxx.service-now.com/api/now/table/wf_workflow/c3fe0c18db9aa3405881a27314961920",
"value": "c3fe0c18db9aa3405881a27314961920"
},
"sys_mod_count": "6",
"active": "false",
"started": "2026-02-10 01:29:43",
"sys_domain_path": "/",
"sys_tags": "",
"after_business_rules": "false",
"parent_activity": "",
"workflow_version": {
"link": "https://xxxxxx.service-now.com/api/now/table/wf_workflow_version/60ca034adb5eef40c526322af496192d",
"value": "60ca034adb5eef40c526322af496192d"
},
"schedule": "",
"stage": "",
"due": "",
"ended": "2026-02-10 01:29:43",
"name": "xxxxxxxx",
"running_duration": "1970-01-01 00:00:00",
"activity_index": "4"
}
]
}
Observe the "table" attribute. It does not say "wf_context". Is there a way to make it so?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
is there a requirement to use Table API on OOTB table?
is that workflow on sys_attachment table?
wf_context records track workflow executions across tables; the table field stores the target table name
Use sysparm_fields in API request to limit the fields
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
is there a requirement to use Table API on OOTB table?
is that workflow on sys_attachment table?
wf_context records track workflow executions across tables; the table field stores the target table name
Use sysparm_fields in API request to limit the fields
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
is there a requirement to use Table API on OOTB table?Yes, our reporting system pulls data from this table via the Table API
is that workflow on sys_attachment table?Yes
Is there something we can do to override the value to show up as "wf_context"? Maybe via any parameters while querying?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
36m ago
I don't think you can manipulate Table API
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Nisar3 ,
The table attribute for wf_context record means the table record it executed for. This is not a good approach to change the value of this in your REST response, however you can add another field such as "class" and set it statically to "wf_context" if you use scripted REST API instead of OOB table APIs. Scripted REST API gives you unlimited flexibility in terms of the payload and its structure.
If this helped you, please mark this as helpful and accepted.
