In a Business Rule what should be the syntax of condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2023 11:15 AM
Suppose in a business rule I want to add a condition on Advance option that it shoud only run on a particular table.
Please help me to write a code in condition field that the business rule should only run on a particular table.
Thanks
Utsav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2023 05:39 AM
Hello @Utsav JAISWAL
Please mark Correct and click the Thumb up if my answer helps you solved your issue. Thanks!
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2023 06:41 AM - edited 04-02-2023 06:42 AM
Hi @Community Alums
Can you please mention what kind of condition you are planning to put so that i can help you in the best possible way.
You can use any script include and also you can use if condition over there.
Basically the condition field should return true.
Let me know the condition which you are planning. I will help you with the best possible way.
Mark helpful if it helps in solving your query.
Regards,
Johns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2023 02:25 PM
Hi Utsav,
You can use current.getTableName() in the condition field to get the table name.
If this is what you are looking for.
Best Regards,
Swarnadeep Nandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2023 06:25 AM
Business rules run when an operation is performed on a table. If you are writing a BR on top table then you can use class field in When to Run section.
The condition field is visible in advanced view when you want a custom condition that can not be performed via When to run section. In this section, you can also use script includes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 01:43 PM
Example: current.time_spent != previous.time_spent
Current.field_name
Current.variables.field_name