2 Before You Install the Recipe

You must perform the following configuration tasks on your Salesforce, Shopify and Azure Service Bus instances to successfully connect to these external systems using Oracle Integration and create corresponding customer records in Shopify for Salesforce accounts, using Azure Service Bus

Configure Salesforce

To access Salesforce from Oracle Integration and create customers for accounts, you must perform certain configurations on your Salesforce instance.

You must create a user account on Salesforce for Oracle Integration. You’ll use the credentials of this user account while configuring the Salesforce connection in Oracle Integration.

Also, identify your Salesforce instance type and your current Salesforce API version. In addition, create an account to trigger the Oracle Salesforce AzureSB Shopify integration flow of the recipe. To do so, login to your Salesforce instance as an Administrator and perform the following steps:

  1. You need username and password to configure connection with Oracle Integration. To retrieve the credentials, perform the tasks in Prerequisites to Use the Salesforce Username Password Security Policy.
  2. Identify your current Salesforce API version. See Find Your Current Salesforce API Version.
  3. Identify your Salesforce instance type. See Identify the Instance Type of Your Salesforce Organization.
  4. Define your Platform Event which enables Salesforce adapter to receive account creation notification. See Prerequisites to Use Platform Events.
  5. Follow the steps below to create the Apex Trigger.
    1. Log in to your Salesforce instance.
    2. Go to profile name, and then Setup.
    3. Search Apex Trigger in the QuickFind search box present on the left panel.
    4. Click Developer Console.
    5. In the Developer Console window that appears, click File, then New, and then Apex Trigger.
    6. In the New Apex Trigger window, enter the name of the trigger in the Name field and select the sObject from the drop-down list.
    7. Click Submit.
      A new Apex trigger is created.
    8. Write the business logic as per the requirement and save it. Debug any errors that you encounter.

    The newly created trigger now appears in the Apex Trigger list.

    Note:

    For this recipe, refer to the following sample Apex Trigger file: SFDC_SHOPIFY_CREATE_ACC_Trig_APEXCode.tgr.

Configure Azure Service Bus

To access Azure Service Bus from Oracle Integration you must perform certain configurations on the Azure Portal.

  1. Register an application in the Azure portal and obtain the tenant ID and client ID. See Register an Application.
  2. Create a new client secret. See Create a New Client Secret.
  3. Create a new service bus namespace. See Create a namespace in the Azure portal.
  4. Ensure firewall port permissions are verified by:
    1. Confirming accessibility to the Advanced Message Queuing Protocol (AMQP) ports 5671 and 5672.
    2. Confirming that the endpoint is permitted through the firewall.
  5. Create a queue within the namespace which you created in step3 above. For example: queue_sf_to_shopify.
    You can now use this queue to consume and publish messages using Oracle Integration.

Configure Shopify

To configure Shopify, see Prerequisites for Creating a Connection.