Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create tasks for all members in the group and add approvals using flow designer

Community Alums
Not applicable

Hi All,

Actually i have requirement that , we have created a flow where it should create tasks for all the group members and assign task to each person of that group and along that need to attach a approval to each task?

 

Please help me to achieve this

Thanks

Prudhvi

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

1 task can be assigned to 1 group and 1 user

how many tasks are you planning to create?

Are you saying 1 task for each group member?

If yes then you can use Lookup Records on sys_user_grmember

Then use For Each

Then use Create Task record within that loop and set it to each group member

where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

@Community Alums 

it should ideally show.

When you use Ask for Approval action are you not able to select the task record?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Hi @Ankur Bawiskar , I can see it but the issue here is after adding approvals it's only creating a single task and attaching group approvals to the task, but the requirement is if a group has 7 users there should be 7 tasks created and each task should an approval attached to it.

@Community Alums 

you should use for each, create task and then add approval to it

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Hi @Ankur Bawiskar , Yes I am using the same but what's happing is it's creating one task and attaching the approval to it once the task approved it's creating the second one and attaching the task. But I need all the 7 tasks created at once with one approval attached to each task record