Loading
Prepare for Email to Become the Default Login ExperienceRead More
Intermittent freezing when using using certain browser versionsRead More
Test the Integration Procedure that Invokes the Vlocity Scheduled Job (Managed Package)

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.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. Go to the Preview tab in the invoking Integration Procedure.
  2. 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"
                }
            }
        ]
    }
  3. 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 vlcInputMap node.

    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.

  4. 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.
  5. Go to the Contacts tab.
  6. Change the List View from Recently Viewed to All Contacts.
  7. Type each of the Contact names in the Search field to verify that they were created.
 
Loading
Salesforce Help | Article