Multiple approval records for same user

naziya
Giga Contributor

Hi All,

I have a requirement from the user that for a particular service request they want the approvals to be based on the list of roles selected in the Service Requests.

For example, role 1 would be approved by approver 1, role 2 by Approver 2..and so on.

The approver can be mapped to multiple roles. I have created a custom table to map the roles and the approvers.

The issue I am facing is when the multiple roles are selected, for which same approver is mapped in table. Then when I generate the approvals through Approval-User activity in workflow, only one approval record is created for each user. I need multiple approval records to be generated for this same approver.

Is this achievable?

Thanks in advance.

3 REPLIES 3

srinivasthelu
Tera Guru

You might want to look at this script include: WorkflowApprovalUtils



that is responsible for generating approval records.



Mark this answer as helpful/correct if it does so


Srinivas


Hi Srinivas,



Thanks for you reply..



I cannot find anything in this script include which would tell that the 'Approval-user' activity restricts the creation of more than one approval for the same user.



Can you suggest something which might help me inserting multiple approval records for same users?




Thanks,


Naziya


rehani
Tera Contributor

Hi,



You should use the Approval Co-ordinator for this where you need each group to approve.   This means that is a user is part of 2 groups they will need to approve twice (or someone else in the group can approve).



I would normally use the 'Approval-Group' activity for this so that you only need to change the group membership of the approval if you have a change in the organisation where someone leaves or starts a new role.