- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2023 04:32 AM
Hi All,
I wanted to know, how to replace a hardcoded sys_id with system property in condition Business Rule
I am trying to replace the sys id with system property in condition but unable to achieve it.
Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2023 05:40 AM
Hi @Varun40 ,
You can directly use gs.getProperty('Your_Property_Name') in the condition of Business Rule, just update your condition like the one below.
(new global.AssessmentUtils().conditionCheck(current, 'state=7^business_service.company.parent=' + gs.getProperty('<Your_sys_propert_name>') + '^EQ'))
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2023 05:40 AM
Hi @Varun40 ,
You can directly use gs.getProperty('Your_Property_Name') in the condition of Business Rule, just update your condition like the one below.
(new global.AssessmentUtils().conditionCheck(current, 'state=7^business_service.company.parent=' + gs.getProperty('<Your_sys_propert_name>') + '^EQ'))
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2023 08:43 AM
Looks like you have an extra close parenthesis after AssessmentCreation.
It should look like AssessmentCreation().condition....