Newer Version Available
Business Objects API
SObjects are complex in nature as they require specific attributes and processes to be executed when manipulating them to ensure data is consistent and correctly calculated. Business Object API acts as a middle layer transforming simplified payloads into the required SObject records.
Business Object API features are:
- Same behavior when used from within Salesforce LWC components and API
- Supports up to 10000 records per transaction
- Input payload validation through Schema validation
- Extensive configurability and extension capabilities through point & click customization and APEX class plugins
- Transactional integrity
- Out of the box operations logging and traceability
Installing Base Business Object API Configurations
In order to install base Business Object API configurations in an org for a Sales Organization, execute the following APEX snippet:
1cgcloud.TPMSetupData.setupBOApi('<sales org>');You can track the install progress through the related Batch Run Status record.
Process Overview
When a Business Object API request is received, the following steps are executed in order to process the request for each input:
- Spawn a Queueable job for each input record.
- Input validation: Based on the workflow configuration records, the received input is validated against the expected schema. If the validation fails, an error is emitted and the process stops
- Transformation phase: At this point, all the Workflow Steps defined for the Workflow start executing in the defined order:
- Business Logic Save: The generated output object is passed to the relevant Business Logic save function. This will generate all the required SObject DML operations
- Database Commit: After all the Steps are executed, data is committed to the Database
If the system detects any DML Row Lock exception during steps 3, 4 or 5, the operation will be retried.
All Business Object API requests are logged into the Business Object API Transaction Log SObject for traceability.