You are here:
Test the Integration Procedure that Invokes the Vlocity Scheduled Job (Managed Package)
For the managed package runtime, the fifth and final step in creating the Batch Action example is to test the Integration Procedure that invokes the Vlocity Scheduled Job.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Go to the Preview tab in the invoking Integration Procedure.
-
In the Input Parameters panel, provide input with the following structure, using an Account Id and names of your choice:
{ "AccountId": "0016100001BKL4uAAH", "Contacts": [ { "Name": { "First": "John", "Last": "Doe" } }, { "Name": { "First": "June", "Last": "Doe" } } ] } -
Click Execute.
The Scheduled Job calls the Integration Procedure twice. The first time, the job sends this input:
{"Name":{"First":"John","Last":"Doe"},"vlcInputMap":{"AccountId":"0016100001BKL4uAAH","Contacts":[{"Name":{"First":"John","Last":"Doe"}},{"Name":{"First":"June","Last":"Doe"}}]}}Note that the first list item is extracted and listed separately from the full Batch Action input under the
vlcInputMapnode.The second time, the job sends this input:
{"Name":{"First":"June","Last":"Doe"},"vlcInputMap":{"AccountId":"0016100001BKL4uAAH","Contacts":[{"Name":{"First":"John","Last":"Doe"}},{"Name":{"First":"June","Last":"Doe"}}]}}Note that the second list item is extracted.
- Check your email. You should see an email with a subject such as Apex Job Completed: 7074N00007LP8kYQAT. The Id in the subject is for the Vlocity Scheduled Job record.
- Go to the Contacts tab.
- Change the List View from Recently Viewed to All Contacts.
- Type each of the Contact names in the Search field to verify that they were created.
