- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 02:22 PM
How to I update the business rule to copy RITM comments to all the TASKs created under the RITM?
Current business rule: Copy Comments from RITM to Task
This only copies the RITM Comment to the first Task .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 04:52 PM
In this case all you would need to do is change the 'if' to 'while' to retrieve more than one sc_task record:
while (cattaskis.next()) {
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 04:52 PM
In this case all you would need to do is change the 'if' to 'while' to retrieve more than one sc_task record:
while (cattaskis.next()) {
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 04:55 PM
If believe the problem is with
line 9: if (cattaskis.next()) {
when 'If' is used, the business rule will only add the RITM comment to the first task associated with the RITM
when 'While' is used, the business rule will add the RITM comment to ALL the tasks associated with the RITM