- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2023 02:16 PM
So, I have a "Wait for Condition" workflow activity and I want to create a daily email to show what RITM(s) are sitting on that activity. I don't need a lot of information, mainly just the REQ number that it's under. Anyone know what the best way to get this information?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 03:47 AM
Hi Eric,
The wf_executing table is a good place to start. You can confirm these values in a list view of this table, manually filtered to find the records you're looking for.
- State = waiting (label shows 'Running')
- you can specify a Context.workflow_version, which is the Name of the workflow
- activity.activity_definition.name = Wait for condition
- activity.name, which is helpful if this wait activity has a unique name vs others in the same (or different if you don't specify the context.workflow_version) workflows.
Once you get the right records, context.id will get you the sys_id of the RITM, so you could use context.id.number to get the RITM Number, and context.id.request.number to get the REQ Number,...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 03:47 AM
Hi Eric,
The wf_executing table is a good place to start. You can confirm these values in a list view of this table, manually filtered to find the records you're looking for.
- State = waiting (label shows 'Running')
- you can specify a Context.workflow_version, which is the Name of the workflow
- activity.activity_definition.name = Wait for condition
- activity.name, which is helpful if this wait activity has a unique name vs others in the same (or different if you don't specify the context.workflow_version) workflows.
Once you get the right records, context.id will get you the sys_id of the RITM, so you could use context.id.number to get the RITM Number, and context.id.request.number to get the REQ Number,...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 05:05 AM
Thank you, Brad. That was exactly what I needed to get me in the right direction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 10:55 AM
You are welcome!