If else condition in BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 02:31 AM
I want to write a BR so that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 02:34 AM
Try the below :
if(current.subject_person.u_work_country == "London") {
current.assignment_group = "<sys_id_of_windows_group>";
}
else if(current.subject_person.u_work_country == "France"){
current.assignment_group = "<sys_id_of_unix_group>"
}
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 02:45 AM
Hi @Lusifer1984 ,
Please pas the sys_id of the assignment group
if(current.subject_person.u_work_country == " London") {
current.assignment_group = "sys_id";
else
if(current.subject_person.u_work_country == " France")
current.assignment_group = "sys_id"
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 02:47 AM
This If Else condition is correct but you can put the sys_id of Assignment_group on "Windows" and "Unix"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 02:56 AM
Hi @Lusifer1984 ,
Remember that the current.assignment group is a reference field, hence SysID should be typed in instead of the name as @SN_Learn has suggested.
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/