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.

Show Workflow link is missing in RITM

Revathi12
Tera Contributor

Hi Team,

 

We are trying to create a child RITMs for one of the requirement, however show workflow link is missing. I have created business rule to populate the related links show workflow and show context but its not working.

 

Before business rule on insert :-

 

(function executeRule(current, previous /*null when async*/) {
var eq = "id="+current.sys_id+"^state=executing";
var wfcGr = new GlideRecord('wf_context');
wfcGr.addEncodedQuery(eq);
gs.info("Test WF"+wfcGr.getEncodedQuery());
wfcGr.query();
if(wfcGr.next())
current.context = wfcGr.sys_id;
current.insert();

})(current, previous);
2 REPLIES 2

Anubhav24
Mega Sage

Hi @Revathi12 ,

Can you please post the script of how you are creating the child RITMs.

Please mark helpful/correct if my response helped you.

We are using workflow, child RITMs are getting created and that is fine but link is not coming up.