- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:32 AM
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
What I did was I created a script include
Then I tried to call it in Business Rule:
RESULT:
It seems that it is not getting the sys_id of the email notification because it is showing "empty here"
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:37 AM
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(.....
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:37 AM
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(.....
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:38 AM
Hi,
You can directly call the system properties into Business rule. instead of getting into script include & call it in business rule.
var your_variable = gs.getProperty('property.name');
You can refer the article:System Properties & its Usage
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:42 AM
Yes. that's what I did but there are so many sys_properties right now in the br and they wanted to transfer it in script include and just call it in business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:40 AM
Hi Summer,
The return statement is missing here, the rest of all are correct.
Regards,
Snehangshu Sarkar