- Functional Demonstration
SalesForce 5.0 microservice simplifies the process of connecting salesforce.com's Bulk API. SalesForce 5.0 microservice helps to query, insert, update, upsert, or delete multiple records. Records can be submitted in XML, JSON, or CSV formats.
Various properties pertaining to the microservice ca be configured in the CPS (Configuration Property Sheet) as displayed below.
Figure 1: Component Configuration panel
Error handling configuration
The remedial actions to be taken when a particular error occurs can be configured using this attribute.
Click the ellipsis button against this property to configure Error Handling properties for different types of Errors. By default, the options Log to error logs, Stop service and Send to error port are enabled.
Click the Login Configuration ellipsis button to configure the properties.
This property specifies the parameters which need to be passed to salesforce.com while logging. Parameters like username, password etc. can be specified here. While entering password details, the security token should be concatenated with it to make authentication successful.
This property helps to choose from the objects listed in the salesforce.com to which the operations are applied. This property lists all the objects in the salesforce.com including custom SObjects.
Figure 3: Selected SObject panel
The buttons present in the Selected SObjects dialog box are described in the table below.
|>||To include an object from the list of objects in the left panel.|
|<||To exclude an object from the list of objects in the right panel.|
|reload||To refresh the left panel to update with new objects/custom objects.|
The records can be represented in the following formats:
Operations that can be done in the salesforce.com are:
Select the appropriate operation type from the drop-down.
This property specifies the bulk operation which is used to create records in salesforce.com.
This property specifies the bulk operation which is used to update the records in salesforce.com.
This property specifies the bulk operation which is used to insert records automatically in salesforce.com depending upon the existing row.
This property specifies the bulk operation which is used to delete the records in salesforce.com based on the ID specified.
This property specifies the bulk operation which is used to query the records in salesforce.com based on the condition specified.
Similarly, when the Content Type property is selected as 'JSON', the sample input for the Create operation is given below:
Similarly, when the Content Type property is selected as 'CSV', the sample input for the Create operation is given below:
Monitor Batch Status
If enabled, then the 'Monitoring Interval' property will appear as shown in the figure below. The time interval in milliseconds after which status of the batch is sent to the Status Port.
Figure 4: Monitor Interval option
Configure the Salesforce microservice as described in the Configuration section above to create accounts SObject on salesforce.com and use the Feeder and Display microservices to send sample input and check the response respectively.
Figure 5: Demonstrating scenario with sample input and output
Figure 6: Output Message