Activate and Run the Recipe

After you've configured the connections, activate the recipe package and run it.

  1. On the Configuration Editor page, click Activate in the title bar. In the Activate Package dialog, click Activate again.
    A confirmation message is displayed informing that the integration has been submitted for activation. Refresh the page to view the updated status of the integration.
  2. Run the recipe from an external application.
    1. On the Configuration Editor page, select the integration and click Run Run icon.
    2. On the resulting pop-up dialog, click the Metadata URL link.
    3. From the new tab that opens, copy the Endpoint URL value. This is the integration flow's endpoint URL.
    4. From the external application, send a POST request to this endpoint URL along with the necessary file and the ID of the Salesforce record to which you want to attach the file. Upload the file in the POST request's Body field and specify the Salesforce record's ID as a template parameter at the end of the integration's endpoint URL, replacing the placeholder {salesforceObjectId}.

      The integration flow attaches the file you uploaded to the specified Salesforce record and returns 200 OK as a response, which indicates a successful execution.

  3. Test the recipe in Oracle Integration.
    1. On the Configuration Editor page, select the integration.
    2. Click Run Run icon, then click Test.
      The page to test the integration with a sample file is displayed.
    3. In the Request section of the test page, enter the following details:
      1. On the URI Parameters tab, against the salesforceObjectId field, enter the ID of the Salesforce record to which you want to attach the file. To obtain the Salesforce ID of a record, see Before You Install the Recipe.
      2. On the Body tab, upload a file from your computer.
    4. Click Test.
      The integration flow now attaches the file you uploaded to the specified Salesforce record. The Activity Stream pane appears displaying the status of the integration instance's execution.
    5. In the Response section of the test page, you should see the status as 200 OK and "success" : true.
  4. Log in to your Salesforce instance as an Administrator and check if the file has been attached to the specified record. Because we've used an account record as an example in this document, the following steps detail how to navigate to an account record on Salesforce and check for the file attachment.
    1. On the Salesforce Setup page, click the Accounts tab.

      Note:

      If you don't see the Accounts tab on the Setup page, click the Plus icon to the right of your current tabs, and then click Accounts.
    2. On the Accounts Home page, click the account whose ID you specified in the REST request.
    3. On the account's page, scroll to the Notes & Attachments section.
      You'll find the file you sent through the REST request under this section.