How to put sys_properties to script include then call it in Business rule?

Summer
Kilo Contributor

Hi! Can you guys help me with this one?? 

My requirement is to transfer the variables (sys_properties) in Script Include then just call it in Business rule.

Note: the sys_property has the sys_id of the email notification

find_real_file.png

 

What I did was I created a script include

 

find_real_file.png

 

Then I tried to call it in Business Rule:

 

find_real_file.png

 

 

RESULT: 

It seems that it is not getting the sys_id of the email notification because it is showing "empty here"

find_real_file.png

 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

You don't have return statement in your script includes, that's why its not assigning any value in BR.

Please add return statements such as

return gs.getProperty(.....

Best Regards
Aman Kumar

View solution in original post

5 REPLIES 5

Summer
Kilo Contributor

Thank you guys for helping me out! Appreciate it 🙂