Querying workflow task on task completion

I need to extract the details of a completed task in a workflow, specifically who completed the task. The task is being assigned to a group not an individual and for auditing purposes I need to capture who completed the task in the workflow and update the dataset with their name.
I can't find a function that queries Task Center or an output from the task assignment of a task identifier.
I looked at Task Identifiers in the form options but the text is non-sensical and there is no mention of how to use this in the workflow process. Of course, there is no support documentation on what this does and how to use it.
Comments
-
John, sorry you’re so frustrated. I agree with you that it should be easier to see the user who completed a task. I have two solutions for you.
1 - I can share a function you can run right after your user task that will tell you.
2 - there’s a DomoStats report that is either available now, or very soon (need to double check) that will have that info.Down the line, the team is looking at the best way to incorporate this by default. In my opinion, it should be a sort of system variable that is returned to the workflow.
With regards to the task identifier, you may find them nonsensical but I found them immensely valuable. They make it easy to identify what a user task is related to while looking at the list of tasks. You can pass variables and free form text in there.
Again, sorry you’re frustrated.
0 -
Hi Dan, thanks for the reply.
Please share the function.
I think the text for the task would be better served mentioning that the Task Identifier(s) will only be applicable to the metadata of the task in the Queue and are not relatable to the workflow.
It would appear that only variables that are being used in the form are able to be passed to the Task Identifier, any other variables in the workflow are unavailable. So, if I want to add in the value of the variable for the request ID that I create in the workflow I can only use it if it is a question field on the form, but that value is not relevant to the form as a question.0 -
Here's the function.
1 -
Here's a screenshot if the inputs
1 -
Thanks Dan, I have now implemented the code and am using it in my workflow, works a treat.
In my code I have set completedBy as a Person type output as I then extract the approver's name to update into the dataset that is storing the approval task details.0 -
Good stuff. Glad you got it up and running.
1
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 655 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 113 Community Announcements
- 4.8K Archive