How to use ParentContext on a Input Form Screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 05:32 AM
According to the docs ParentContext can be used on an Input Form Screen to retrieve data from the parent screen
Configure input form screen variables and attributes (servicenow.com)
However, I can't get it working. The are no examples on this feature. Does anyone have experience with this?
Some details what I tried so far:
On a Work Order Task Record Screen, I have a Footer Function / Action Item wich Redirects to an Asset Record Screen.
On this Asset Record Screen I need information from the Work Order Task.
With a Footer Function / Action Item, I created an Input Form Screen
With the Input From Screen I created a Variable of Type: ParentContext with name wot_id and an Attribute ContextField with value: sys_id (trying to get the WOT sys_id)
The wot_id variable does not end up in my Action Item script.
Also when auto-populating it in an Input field does not end up in my Action Item script.
Some screenshots:
- Labels:
-
Agent Mobile App