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.

How to Access form section field of record using business rule

Rohith2
Tera Contributor

How to Access form section field of record using business rule

8 REPLIES 8

Anurag Tripathi
Mega Patron
Mega Patron

Can you elaborate on what you need to do.

Its not very clear what you are asking.

 

-Anurag

Hi Anurag,

I have a table in which when we open any particular record, we have form section it is a reference field, now i want to glide that form section field.
How we can achieve it.

Thank you

Hi,

Something like this

(function executeRule(current, previous /*null when async*/ ) {
var fc= new GlideRecord('<table name>'); // this is the table yoru form section field points to
fc.addQuery('sys_id', current.<Form section field name>);
fc.query();
if (fc.next()) {
//Do whatever
 }
})(current, previous);
-Anurag

No It is not working.
You mean we should glide the form sction field which is pointing to?