Business rules Increment value if contains initial keyword
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 12:46 PM
Hi,
I have a Business rules that increments the integer values if contains initial keyword, but the problem is it will increment until 8 and goes back to initial number. I have below code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 03:48 PM
It seems that the else part of your if (gr.next()) block gets executed at that point. What table is your business rule defined for? And how exactly is it configured?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 05:02 AM
The table is sc_req_item. It will run before insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 09:59 AM
There is no loop in your code, how does it "increment until 8 and goes back to initial number"?