Start a new topic

Workflow Assignment Condition

My workflow is initiated by User1( in a roll called requestor).  They input values in a stepper and submit.  The values through the workflow are save to the entity.  The next task is for the approver to review the request and add inform in other fields that enhance the request.  The approver belongs to a different role call 'approver'. The approver submits(approves) the request with a submit.  The values through the workflow are save to the entity. The requestor and approver are saved in fields in the entity on the record.  Another step further down the workflow is a task back to the individual that "approved" the request.  In the Assignee Required Role property of the user task I put the role 'approver'.  I want it assign the task to the individual who approved the request(saved on the record).  In the "Assignment Condition" of the user task properties in the workflow you can enter SemQL.  However, the documentation say:


image

I take that as the "requestor" is the initiator in my example.  The SemQL allows me to get to the data field that holds the email of the approver.  Can I use that?  This is confusing to me.  If "Assignment Condition" ONLY allows the code from the documentation, why give a SemQL option?  Why not make it a checkbox and it populates for you?  Having SemQL available indicates that I can get my assignee from other places.  Below is the SemQL I would like to use.  Is this an option?  Am I reading this wrong?


Username = StepInstance.CurrentDataSet.M001_SKU_MAT_REQ.EMPLOYEE_PGAppr.Email


Thanks,

Matt

1 Comment

I think I fond the answer.  Before the User Task, I need to insert a "Set Workflow Metadata" automation and set the parameter for Initiator.  Then I can set the Assignment Condition using the SemQL suggested code for the user task

Login to post a comment