- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 12:03 AM
Hi All,
How I can trigger group approval form business rule if record in some particular state.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 12:08 AM
you can use flow designer with proper trigger condition and then use "Ask for Approval" flow action.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 02:01 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 12:08 AM
you can use flow designer with proper trigger condition and then use "Ask for Approval" flow action.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 02:01 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 01:15 AM
Hi @keshav77 ,
As suggested by @Ankur Bawiskar it is best practice to trigger the approval. But you want to trigger from business rule then you need to write some code. It will create a new record in 'sysapproval_approver' table.
Below is for to trigger approval to specific group.
(function executeRule(current, previous /*null when async*/) {
//Check the state of record or else you can have this condition in your business rule filter condition.
if (current.state == 'assess') {
var groupSysId = 'YOUR_GROUP_SYS_ID'; // Replace with the sys_id of the approval group
var approvalGr = new GlideRecord('sysapproval_approver');
var groupMembers = new GlideRecord('sys_user_grmember');
groupMembers.addQuery('group', groupSysId);
groupMembers.query();
// Create approval records for each group member that's why need to create new record for each
while (groupMembers.next()) {
approvalGr.initialize();
approvalGr.sysapproval = current.sys_id; // Link to the current record
approvalGr.approver = groupMembers.user.sys_id; // Set the approver
approvalGr.state = 'requested'; // Set approval state
approvalGr.insert();
}
}
})(current, previous);
This way you can trigger the group approval from BR.
Thanks,
Bhimashankar
----------------------------------------------------------------------------------------
Please mark my answer as helpful/correct if it resolves your query.
----------------------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 03:08 AM
Hey @keshav77 ,
If my answer helps you or resolves your query, please consider marking as 'Accept as Solution'. So other readers with similar questions can find it easily.
Thanks,
Bhimashankar H