We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Adding group approval on scoped app table is creating just 1 entry in sysapproval_approver table

nikhil79
Tera Contributor

I have created a scoped app in which I have added 2 fields, approval and approval_history to make use of "Ask for Approval" activity, which is working perfectly fine.

However, when I am adding the group approval it is creating just 1 entry per user in the sysapproval_approver table even though the user is part of multiple groups.

Use case : User is part of multiple groups. Group approval is added on to the custom table - if the user is part of 3 approval groups, then 3 separate entries should be created for that user. What would be the best way to achieve this?

Example:
ApprovalGroup1 - UserA, UserB, UserC
ApprovalGroup2 - UserX, UserY, UserA, UserB
Now, there should be 2 group approvals added, but there should be 7 entries in sysapproval_approver table.

3 REPLIES 3

TejasN505724351
Tera Contributor

Hi,

This is expected behavior. When using Group Approval in Flow Designer, ServiceNow de-duplicates users and creates only one approval record per user, even if they belong to multiple groups.

Out-of-the-box, it does not create multiple approval records for the same user based on different group memberships.

To achieve your requirement, you will need to implement custom logic—such as scripting to manually create entries in the sysapproval_approver table for each group-user combination.

Alternatively, you can handle approvals at the group level instead of duplicating users, depending on your business need.

Hope this helps!

SohamTipnis
Kilo Sage

Hi @nikhil79,

 

It is OOTB behavior as ServiceNow does not create multiple approvals for the same user with different roles, so this is what the expected behavior should be. You may use a script action for your requirement.

 

If you find my answer useful, please mark it as Helpful and Correct. ‌‌‌‌‌😊


Regards,
Soham Tipnis
ServiceNow Developer ||  Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10

Ankur Bawiskar
Tera Patron

@nikhil79 

I think it's OOTB behavior.

Better you get all members for those groups, get unique members then and then use Approval on that list of users

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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