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.

Flow Designer Script to show an approval group in 'Group Approvals' tab of a RITM

chatsaurav19
Tera Contributor

Hi All,

 

I am trying to populate an approval group in the 'Group Approvals' tab of a RITM but it is returning me an error.

 

Error : attempting to use undefined input = 'current' from Knowledge Base Data Management Request

 

var kBId=fd_data.trigger.current.variables.getValue('knowledge_base_kdmbr');

var grTab = new GlideRecord('x_inpe_gbs_core_pep_gbs_config');
grTab.addQuery('knowledge_base', kBId);
grTab.query();
if(grTab.next()){
  return grTab.getDisplayValue('knowledge_functional_team');
}

 

Can anyone help rectify this error?

 

Regards,

Saurabh

1 REPLY 1

jonsan09
Giga Sage
Giga Sage

Instead of returning the display value (getDisplayValue) you might need to return the sys_id.