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.

When Tag is added to change request that should populate in Cab Agenda Item Table

Community Alums
Not applicable

Hi Experts ,

Have a requirement when the tags are added to the change request, those added tags should get populate in the cab_agenda_item table for the associated change request,

Similarly when the tags are removed from change in change_request table those should get removed in cab_agenda_item table records as well.

find_real_file.png

find_real_file.png 
Kindly help me on achieving this with script (Business rule) . 
Thanks,
Chaithanya

1 ACCEPTED SOLUTION

Uncle Rob
Kilo Patron

Why bother with a BR when you can build it in Flow Designer with zero code?

TRIGGER:
find_real_file.png

 

STEPS

1.  Look up ALL CAB Agenda Item Records where Task = Trigger Record's Table Key
find_real_file.png

2.  For each item in 1
find_real_file.png

3. Create Record in the Label Entry table
- Label = Trigger Record's Label
- Table = Trigger Record's Table (ALTERNATIVELY the Table entry from 1)
- Table Key = 2.Sys_id
find_real_file.png

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Hi @Robert Fedoruk 

Getting the below error.

find_real_file.png