How to use ParentContext on a Input Form Screen

Hilbrandt van B
Tera Contributor

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:

Function on WOT Record Screen.pngFunction on Asset Record Screen.pngattribute.pngvariable.pngAction Item.png

0 REPLIES 0