With the Skyvva integrate asynchronous mode, you send small-size data. With the Skyvva batch, you send medium-size data. With the Skyvva bulk, you can send large-size data. You have to configure these three different modes statically on the Skyvva interface and can run the interface specifically with the configured mode.
Sometimes you have a situation where you cannot control how the sender is going to send the data to Salesforce. In some circumstances, the sender sends 2 records per Call, in another case, it sends 500 records, and in another case sends 50k records. If your interface is configured to use the normal integration mode only then you will hit the Salesforce governor limit when you send 500 records and you have to change the interface configuration to use the Skyvva batch. If the client accidentally sends 50k records even the Skyvva batch will fail and you have to use the mode Skyvva Bulk.
The problem is that you cannot keep changing the interface processing mode every hour. To handle this situation you have to use the mode “Skyvva Autoswitch”.
Here is an example of the Autoswitch mode.
You have to set the operation in this case to “Skyvva Autoswitch” in the parameter “Operation”. Then you have to set the parameter “AutoswitchBatchMaxSize” and “AutoswitchIntegrateMaxSize” to define the threshold value for switching the mode based on the record size. Refer to this old documentation https://docs.skyvva-dev.com/docs/25-how-to-create-an-inbound-interface-using-integrate-autoswitch-mode-with-skyvva-v3-connector-module/ on our website to understand the functionality of this mode.
The table below shows the parameter names that we have renamed. As you can see in the screenshot above same parameters are used as in the other operation mode. Therefore these parameters are not mentioned in the table below again.
For this mode our runtime needs to know the threshold value when to switch from the normal integrate to batch and from batch to bulk. Therefore it is important to set the correct parameter for the threshold and the package size. Here we have to set two different package sizes e.g. one for the batch and the other one for the bulk mode. Therefore we see here two different parameters with the package size
- BatchPackageSize. This is to set the batch package size.
- BulkPackageSize. This is to set the bulk package size.
These two parameters can be set on the Skyvva interface as well. Please refer to the chapter for the batch and bulk regarding the version-specific constraint.
7.1 V2 Interface #
You use the module “Skyvva/V2/RestIntegration” here. Note that the OAuth configuration is the same as you have seen for the operation “Integrate XX” and is not repeated here.
Here is an example of the V2 module.
7.2 V3 Interface #
You use the module “Skyvva/V3/RestIntegration” here. Note that the OAuth configuration is the same as you have seen for the operation “Integrate XX” and is not repeated here.
Here is an example of the V3 module.