BR issue

nameisnani
Mega Sage

Hi Team ,

 

When ever we are creating standard change template , and category is 'template management , after completing approval ,then , Hide on ServicePortal is become false .

 

BR i have written 

nameisnani_0-1719218858943.png

nameisnani_1-1719218895461.png

 

Testing Result 

 

nameisnani_2-1719218932704.png

 

Still active shows FALSE 

nameisnani_3-1719219009588.png

 

 

can anyone please help me on this .. 

 

please provide configuration screenshots for better understanding

3 REPLIES 3

Anurag Tripathi
Mega Patron
Mega Patron

HI,

Dot walk to another table and update doesn't work like this.

You need to write a glide record script to get to the target record and then update it.

 

-Anurag

Robbie
Kilo Patron
Kilo Patron

Hi @nameisnani,

 

The issue I see is more of one around logic. This business rule will run after insert only. However, you mention in your requirement that the 'Hide on Service Portal' should be set to true after approval. 

Insert and approval will not happen at the same time (Unless you can advise otherwise).

 

The business rule needs to be after update, and it should happen once the approval state has changed to approved. (Or suitable change state appropriate your your workflow)

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

Ankur Bawiskar
Tera Patron
Tera Patron

@nameisnani 

if the BR and the field to be updated are on same table then you should use Before insert and then Set Field values will work.

if the field to be updated is on some other table then you need to use script and update it

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader