You can configure auto-switch in your skyvva interface. The same will be reflected automatically in your Mule application when you used Skyvva Mule connector.
It has been available with Integrate, Integrate Synchronous and Integrate Batch operations of the Mule Skyvva connector. It will internally use the correct way to store the data based on the data size and the configuration used for that interface. If it has high volume data then internally it will switch to Skyvva Bulk mode and update your data.
The below is a request payload for Integrate Synchronous operation with auto switch enabled and with Integrate_Max_Size__c as 2 and Integrate_Batch_Max_Size__c value as 5.
- Request has 7 records. It will use the Skyvva Bulk and create an Attachment object in the salesforce with ParentId value as the interface’s salesforce Id. Later Skyvva will use that to create the respective objects in salesforce. Refer section-5 (5. How to use bulk api to push high volume data to Salesforce? ) for more details of bulk api.
- Request has only 1 records. It will use Skyvva Integrate Synchronous to complete the request. Refer section-3 (https://docs.skyvva-dev.com/docs/mule-adapter/3-how-to-do-real-time-data-synchronization-to-salesforce/) for more details on SKyvva Integrate Synchronous.
- Request has 3 records. It will use Skyvva Integrate Batch to complete the request. Refer section-4 (https://docs.skyvva-dev.com/docs/mule-adapter/4-how-to-use-batch-technique-to-push-data-to-salesforce/) for more details on SKyvva Integrate Batch.
The response from the above request will have the attachment object Id.