Multiple Workitems to the same manager

Which IIQ version are you inquiring about?

Version: 8.5P1

I have q requirement, i. e we are creating a workitem to the manager including of his/her reporties, if manager having more than 50 reporties we need to create a another workitem to remaining users.

Ex: per workitem 50 items need to be added.

id this possible to achieve? above is my code snippet to build approvalset, so please let us know how we can achieve.

Hi @Anjan_dummeda

How are you creating the workitem? Is it through custom code? Let me know the process that you are using currently.

Hi @Anjan_dummeda Interesting use case. Can you share more details to understand your use case? Ideally, work items are created by user. I think you don’t need to create separate logic, as per the out-of-the-box approval process.

Thanks,

PVR.

Is this part of access request flow or something else?

What’s in the workitem assigned to the manager- approval or form?

Can you explain your use case in detail?

Hi @sanjaysutarc , yes, it’s part of access request only.

So, we have a run rule task, using this task we are launching lcm workflow to create access request

Logic in the run rule is fetching all users and building a map with list of users with respective manager

eg: userMap.(“managerId”,usersList)

we are iterating this userMap with keySet, so in this loop we are launching the LCM workflow to the manager

if userList is more than 50 we are launching LCM workflow with batch records for same manager, so this is batch process resolved the issue.