Configuring access to Microsoft Dynamics 365 lists

Using Business Connectivity Services (BCS) and Secure Store, you can configure a SharePoint External List from the SQL Server where your contacts from Dynamics 365 are stored, which you can use as a recipient list in JungleMail.


Before you begin

In this tutorial, SQL Server Authentication is used as the authentication method to connect to SQL Server. You will need to know your:

  • Server name where Dynamics 365 database is located
  • Database name
  • SQL Server login
  • SQL Server password

1. Create a new Target Application

1. Go to SharePoint Central Administration, then select Application management > Manage service applications > Secure Store Service and open your Secure Store Service.

If Secure Store Service was not configured before, select  Generate New Key and insert a new Pass Phrase.

Note: store the Pass Phrase somewhere secure.

2. Generate a new Secure Store service Application by clicking on New from the ribbon.

3. Assign the ID, display name, and contact email, then set Target Application Type to Group and click Next.

4. Since we are using SQL Server Authentication, insert  User Name and Password in the Field Name fields as shown below. Select the same values in Field Type fields and click Next.

5. Add target application administrators and members, then click OK.

6. Return to the Secure Store Target Application list and select the application that you configured. On the Credentials tab on the ribbon, select Set.

7. In the User Name field, enter your SQL Server login. In the Password field, enter your SQL Server password.


2. Configure Business Data Connectivity Service

To connect to Dynamics 365 CRM using Business Connectivity Services (BCS):

1. Navigate to SharePoint Central Administration, then select Application management > Manage service applications > BDC and open your Business Data Connectivity Service Application.

2. In the Permissions section from the ribbon, select Set Metadata Store Permissions.

3.Type Everyone in the field and click Add.

4. Select All Authenticated Users and set permissions Execute for now. We will discuss how to set individual/group permissions at the end of the article.


3. Create an external content type

The rest of the configuration will be done in SharePoint Designer.

1. Open SharePoint Designer. Select Open Site and insert the Site URL in which you want to configure your external list. Click Open.

2. On the Navigation tab, select External Content Types.

3. On the New section tab in the ribbon, select External Content Type.

4. Set a name for the content type, then select Click here to discover external data sources.

5. Select Add Connection. In the Data Source Type field, select  SQL Server.

6. In the Database Server field, insert your SQL Server name. In the Database Name field, insert your database name. Select the  Connect with Impersonated Custom Identity radio button. In the  Secure Store Application ID field, enter the ID that you configured in step 1.

7. Click OK.
8. When prompted to connect, use your SQL Server login and password.
9. Expand the Tables folder in your connected database.

10. Locate the list that stores your contact information in the database. Contact list from Dynamics 365, for example,  is called "ContactBase" in this database.

11. Right-click the ContactBase list and select New Read Item Operation using the default settings. Then, select Finish.

12. Right-click the ContactBase list again and select New Read List Operation using the default settings. Then, select Finish.

13. On the top of the SharePoint Designer toolbar, click Save.


4. Create an external list

1. Go back to NavigationExternal Content Types and select the created external content type.

2. In the New section, select External List.

3. Enter your external list name, click OK and you are done.

You can verify your results in SharePoint.

Contact list in Dynamics 365: 

Contact list in SharePoint:

Note that you've set up a link between a SharePoint BCS list and MS Dynamics CRM, you can configure list views and apply filters, essentially creating the same functionality as the Dynamic list in Dynamics 365.

Configuring external list permissions

To specify who gets access to the external list:

1. In SharePoint Central Administration, select Application management > Manage service applications > Business Data Connectivity Service Application.

2. Select the external content type you configured in SharePoint Designer in step 3 of this tutorial.

3. In the Permissions section from the ribbon, select Set Object Permissions. Then, add and remove People and (or) Groups to give or deny access to the list. Note: Execute permission level will give the User or Group the permission to view the list which is sufficient to use the list with JungleMail.


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us