Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 07:37 AM
Hi,
I'm trying to write an "if" block to check for some values. I have got more values to verify in the if statement of a Business rule. The script is working fine. But I'm trying to find easy and best practice to achieve this.
if(current.u_level_3.name=='IT Service Systems'||current.u_level_3.name=='Marketing'||current.u_level_3.name=='Sales'){ // }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 09:17 AM
The "Level 3 | changes" is only necessary if you want the BR to run only when that specific field is updated. If you want it to run on every update for any field on the record where Level 3.Name is any of those three values, then you can drop the "Level 3 | changes". And if you're not sure which you want, try both and see which one behaves the way you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 09:21 AM
Okay! Thank you @Aylee Andersen 🙂