Before You Install the Recipe
You must perform the following configuration tasks on your Shopify and Salesforce instances in order to successfully connect to these external systems using Oracle Integration and transfer orders between them.
Configure Shopify
To configure Shopify, see Prerequisites for Creating a Connection in Using the Shopify Adapter with Oracle Integration 3.
Configure Salesforce
To access Salesforce from Oracle Integration and create orders, 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.
In addition, you must identify your Salesforce instance type and your current Salesforce API version. Finally, you must create a custom field for order and account records.
Log in to your Salesforce instance as an Administrator and complete the following tasks.
Note:
The steps provided here apply to the Salesforce Classic UI. If you’re using the Lightning Experience UI on your Salesforce instance, switch to the Classic UI. See Toggle or switch between Lightning Experience and Salesforce Classic.
- Create an API-enabled custom role. You’ll assign this role to the user account you’ll subsequently create for Oracle Integration.
- On the Salesforce Setup page:
-
Expand Manage Users under the Administer section in the left navigation pane.
-
Click Profiles.
-
- On the Profiles page, click New Profile.
- On the resulting page:
-
Select Standard User in the Existing Profile field.
-
Enter a name for the new profile (for example,
API Enabled
), and click Save.
The new profile is now saved, and the Profile Detail page of the new profile is displayed.
-
- Click Edit on the Profile Detail page.
- On the Profile Edit page:
-
Scroll to the Administrative Permissions section and ensure that the API Enabled check box is selected.
-
Scroll to the Standard Object Permissions section and perform the following actions.
-
In the Accounts row, leave the Read, Create, Edit, and Delete boxes checked. Additionally, select the ViewAll check box.
-
In the Price Books row, leave the Read box checked. Additionally, select the Create, Edit, and Delete check boxes.
-
In the Products row, leave the Read box checked. Additionally, select the Create, Edit, and Delete check boxes.
-
In the Orders row, leave the Read box checked. Additionally, select the Create, Edit, and Delete check boxes.
-
-
Scroll to the end of the page and click Save.
-
- On the Salesforce Setup page:
- Create a user account for Oracle Integration and assign the custom role created previously to this account.
Note:
If you have already created a user account for Oracle Integration, you can assign the API-enabled custom role to the existing account.- On the Profile Detail page of the API Enabled profile, click View Users.
- Click New User in the resulting page.
- On the New User page:
-
Enter a first name and last name for the user. For example,
Integration User05
. -
In the Email field, enter a valid email address.
The email address you enter is automatically populated in the Username field. Note down this username.
-
In the User License field, select Salesforce.
-
In the Profile field, select the profile you created previously, that is, API Enabled.
-
Scroll to the end of the page, ensure that the Generate new password and notify user immediately check box is selected, and click Save.
The user account is now created, and a verification email is sent to the email address you provided for the account.
-
- Log in to the corresponding email account and click the Verify Account button in the email message from Salesforce. You’re redirected to the Salesforce instance to set a password for the new user account.
- Set a password and note it down.Subsequently, you’re signed in to the Salesforce instance with the new account.
Note:
If you’re shown the Lighting Experience UI, switch to the Salesforce Classic UI. See Toggle or switch between Lightning Experience and Salesforce Classic.
- Generate a security token for the new user account. You’ll need this security token along with the password to access Salesforce using Oracle Integration.
-
Stay signed in as the new user, and click the user name at the top of the page to open a menu.
-
Click My Settings in the menu.
-
On the My Settings page, in the Quick Links section, click Edit my personal information.
-
On the resulting page, click Reset My Security Token in the left navigation pane.
-
Click the Reset Security Token button.
A new security token is sent to the email address associated with the account. Note down the security token.
-
On the Salesforce instance, click the user name again and select Logout from the menu. Log back in as the Administrator.
-
- Identify your current Salesforce API version.
- On the Salesforce Setup page:
-
Scroll to the Build section in the left navigation pane.
-
Expand Develop, and then click API.
-
- On the API WSDL page, click the Generate Enterprise WSDL link. The WSDL is displayed in a new browser tab, and your current API version is present in the second line. For example:
Salesforce.com Enterprise Web Services API Version 52.0
- Note down the API version.
- On the Salesforce Setup page:
- Identify your Salesforce instance type.
- If you use the URL
https://login.salesforce.com
to log in to your Salesforce account, your instance type is Production. - If you use the URL
https://test.salesforce.com
to log in to your Salesforce account, your instance type is Sandbox.
- If you use the URL
- Create a custom field in Salesforce to store the Shopify Order ID.
This recipe uses unique IDs associated with Shopify and Salesforce instances to synchronize orders and customer records. Create a custom field in Salesforce to store Shopify Order ID.
- On the Salesforce Setup page:
-
Scroll to the Build section in the left navigation pane.
-
Expand Customize, then Orders, and then click Fields.
-
- On the Order Fields page, scroll to the Order Custom Fields & Relationships section and click New.
- On the New Custom Field page:
-
Find and select the Text radio button, and click Next.
-
Enter the following details for the new custom field:
-
Enter
ShopifyOrderId
as the field label. Note that the field name is automatically populated based on the label you enter. -
Enter
50
as the length. -
Optionally, enter a description for the new field.
-
Select the External ID check box.
-
Click Next.
-
-
On the Establish field-level security page, select the Visible check box in the header row to grant edit access to the new field for all profiles. Click Next.
-
Leave all the layout check boxes selected and click Save.
-
On the Order Fields page, you can see the new field added under the Order Custom Fields & Relationships section. - On the Salesforce Setup page:
- Similarly, create a custom field in Salesforce to store the Shopify Customer ID.
- On the Salesforce Setup page:
-
Scroll to the Build section in the left navigation pane.
-
Expand Customize, then Accounts, and then click Fields.
-
- On the Account Fields page, scroll to the Account Custom Fields & Relationships section and click New.
- On the New Custom Field page:
-
Find and select the Text radio button, and click Next.
-
Enter the following details for the new custom field:
-
Enter
ShopifyCustomer_id
as the field label. Note that the field name is automatically populated based on the label you enter. -
Enter
50
as the length. -
Optionally, enter a description for the new field.
-
Select the External ID check box.
-
Click Next.
-
-
On the Establish field-level security page, select the Visible check box in the header row to grant edit access to the new field for all profiles. Click Next.
-
Leave all the layout check boxes selected and click Save.
-
On the Account Fields page, you can see the new field added under the Account Custom Fields & Relationships section. - On the Salesforce Setup page: