feat(business rule) Add Business Rule to calculate MRVS total#2024
Conversation
|
👋 Unassigning @rohi-v due to inactivity (> 60 min without comments/reviews). This PR remains open for other reviewers. |
|
Hello there and thank you for your contribution. I like the idea, however, this script doesn't follow the best practice in working with Multi-Row Variable Set (e.g. .getRow method, etc.) and won't properly work. Please refer to the available documentation and try to refactor it, then I'll approve. |
|
Thanks for the update. I'll approve it now, however, in the future I'd suggest you to work on the naming conventions you are using multiple ones in the same code base. Best practice is camelCase. |
Will do, thank you |
PR Description:
This PR introduces a Before Insert/Update Business Rule on the
sc_req_itemtable.The rule automatically sums a specified numeric field from a Multi-Row Variable Set (MRVS) and populates the result into a separate variable on the Requested Item. This simplifies reporting and flow approvals by providing a persistent, easily accessible total.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions