- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 08:51 AM
I am trying to account for a delay in comment generation where the comments/variables are getting sent to a 3rd party via an interconnect API. I need to generate a comment on the task AFTER the correlation ID is set, as the comments getting sent before are not getting sent properly as the correlation ID is still being generated. Any comment sent later will include full payload, so I just need to add a comment after the correlation ID gets filled in.
Neither the status change (which is only there to check if its working) nor the comment are getting added.
The audit history shows the field getting updated from blank.
What am I doing wrong? I have tried before/after, tried alternate comment add script lines.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 09:03 AM
Hi @jlaps make it before Update BR and give value to condition Correlation ID Changes From or make it Correlation ID Changes.
Regards,
Siddharam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 09:04 AM
@jlaps You are trying to set the comment field in an After business rule, since the after business rule runs after the data is already saved in database hence any changes on the tables fields (comments in this case) would not get saved unless current.update() is used. Ideally current.update() should be avoided in after business rule, but if you still need to user it then user it in conjunction with current.setWorkflow(false);
example
current.setWorkflow(false);
current.update();
Hope this helps.