Customizing CRUD APIs in Supista ERP
Supista ERP comes equipped with powerful standard APIs for Create, Read, Update, and Delete (CRUD) operations, enabling efficient handling of everyday business processes. However, we understand that every organization operates differently and may require tailored solutions beyond the standard features.
To support your unique workflows, Supista ERP offers flexible API customization, allowing you to inject your own logic and business rules directly using JavaScript. This ensures the system aligns seamlessly with your specific operational requirements.
In addition to CRUD operations, Supista ERP supports a wide range of customization options, including:
- Create – Customize record creation logic
- Read – Enhance data retrieval with custom filters or conditions
- Update – Implement validation and transformation during updates
- Delete – Add control layers before data removal
- Form Customization – Modify form fields, layouts, and behaviors to suit user needs
- Action Buttons – Add custom actions and workflows triggered by button clicks
- Schedulers (Cron Jobs) – Automate repetitive tasks with scheduled scripts
- Notification Operation – Send real-time, in-app notifications to users
Code Format for Customizations
Customizations in the ERP system follow a specific code format:
function customizeERP(userData, { createOp, readOp, updateOp, removeOp, bulkCreateOp }) {
// Custom logic here
}
- The function name will always be
customizeERP
, and it must be anasync
function. - The function accepts two parameters:
userData
andapiOperations
.