After you've installed the app, create a new connected app definition using the Salesforce Setup menu.
Make sure that you've downloaded the Alfresco Content Connector app, as described in Step 2: Install the app in Salesforce. In this task, you'll use the Setup menu in Salesforce to customize the install. You need administrator rights to make these changes.
-
In your Salesforce account, find Setup. This is accessible by clicking the gear icon,
, from the top-right toolbar on the Salesforce page.
See Explore the Salesforce Setup Menu for more guidance on where to find this.
Search for Apps in the Quick Find search bar, and click App Manager to see your installed apps.
-
Click New Connected App to create a new connected app.
This new app extends the standard connector to work for your organization. Use the following settings:
- Connected App Name: Name your app something memorable and unique; for example,
Alfresco On-Premise -
API Name: Choose a meaningful name. This is the name used by the API and managed packages. The name must be less than or equal to 40 characters.
Note
A suggested name is
Alfresco_for_Salesforce. You'll need to remember the API Name when you configure the Alfresco Setup tab.Note
If this is not set up correctly, you'll see an error message. See Troubleshooting for guidance.
-
Contact Email: Enter an administrator email address.
- Check Enable OAuth Settings.
- Callback URL: this field is not used, but does need to be completed. You can set this to
https://www.alfresco.com/dummy_callback. -
In Selected OAuth Scopes add the following scopes:
Full access (full)Perform requests on your behalf at any time (refresh_token, offline_access)
-
Check Force.com Canvas.
-
In Canvas App URL, enter a secure (https) URL that points to the Alfresco Share environment, that you have configured with the Alfresco Content Connector. You also need a suffix of
share/page/sfdc/canvas/signedrequest. For example:https://localhost:8443/share/page/sfdc/canvas/signedrequest -
Access Method: Select Signed Request (POST)
-
Add these Locations:
Chatter TabLayouts and Mobile CardsLightning ComponentVisualforce Page
These are locations in Salesforce where the canvas app can be displayed.
-
In Lifecycle Class, look up the options and select
AlfrescoCanvasLifeCycleHandler. - Click Save to save your settings.
Next, you’ll need to manage the connected app that you've just created.
- Connected App Name: Name your app something memorable and unique; for example,
-
For the new connected app, click Manage to set permissions and accessibility.
-
In the OAuth policies section, enter these values:
- Permitted Users: Select
Admin approved users are pre-authorized. Click OK to accept the Salesforce message. - IP Relaxation: Select
Enforce IP restrictions. - Refresh Token Policy: Select the
Refresh token is valid until revokedradio button. - Save your settings.
- Permitted Users: Select
-
In the Manage Profiles section, click Manage Profiles, check the required profiles, and Save your settings.
For example, select
System AdministratorandStandard User. We'll now find the consumer secret ready to paste into Alfresco.