Workflow activity timing issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 02:00 PM
Hi, team! I have been struggling with a workflow activity not grabbing the most recent comments from sys_journal_field.
In a UI action, on the client side, I'm setting a value in the comment field. In the server side of this UI action, it triggers a workflow activity. This workflow activity does a GlideRecord query on the sys_journal_field table to pull in the most recent comment. However, the comment that I added with the UI action does not get pulled in. Instead, the workflow activity pulls in a comment previous to the one that posts with the UI action. It's almost like the workflow activity gets triggered before the UI action even finishes updating the record.
Any ideas on how to resolve this? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 08:58 AM - edited 02-17-2025 08:58 AM
Hi, @Sheldon Swift. I tried accessing the rej_rat variable on the Run Script side, but it's not valid. I'm getting this in my system logs: "rej_rat" is not defined."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 11:33 AM
That is expected, as rej_rat is defined in your Reject UI Action, but not available in your Run Script Workflow Activity. My suggestion was to move that putIssue call into your UI action.