- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 01:52 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:14 AM
Hi @Ayushi Saxena ,
How are the customer table and sysapproval_approver table related.
If you are changing something in your custom table and want the changes to reflect in sysapprover_approval table then the best way would be:
1. write a after business rule in your custom table.
2. Condition when approver changes
3. Write script to query the sysapprover_approval table and update the approver field.
Please mark the answer helpful and correct if it helps the issue. Happy scripting 🙂
-Shantanu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:24 AM
Without getting into much detail in the code, you are missing the appr.query(); before the while loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:27 AM
@Ayushi Saxena You are missing the appr.query() before the while(appr.next()).
Try it. hopefully your issue will be resolved.
Please mark the answer helpful and correct if it helps the issue. Happy scripting 🙂
-Shantanu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:14 AM
Hi @Ayushi Saxena ,
How are the customer table and sysapproval_approver table related.
If you are changing something in your custom table and want the changes to reflect in sysapprover_approval table then the best way would be:
1. write a after business rule in your custom table.
2. Condition when approver changes
3. Write script to query the sysapprover_approval table and update the approver field.
Please mark the answer helpful and correct if it helps the issue. Happy scripting 🙂
-Shantanu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:22 AM
yes I have written After Updated BR On "sn_shop_approval_plan" table. Code is working but everytime getting no match found. Not sure what is wrong with the query

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:24 AM
Without getting into much detail in the code, you are missing the appr.query(); before the while loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:27 AM
@Ayushi Saxena You are missing the appr.query() before the while(appr.next()).
Try it. hopefully your issue will be resolved.
Please mark the answer helpful and correct if it helps the issue. Happy scripting 🙂
-Shantanu