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

  • DanHendriksen
    DanHendriksen Domo Employee

    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.

  • 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.

  • DanHendriksen
    DanHendriksen Domo Employee

    Here's the function.

  • DanHendriksen
    DanHendriksen Domo Employee

    Here's a screenshot if the inputs

  • 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.

  • DanHendriksen
    DanHendriksen Domo Employee

    Good stuff. Glad you got it up and running.