<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>EOS Docs – EXC069.04 DocSolutions for CE (DCS)</title><link>/en/docs/apps-func/appce-docsolutions-for-ce.html</link><description>Recent content in EXC069.04 DocSolutions for CE (DCS) on EOS Docs</description><generator>Hugo -- gohugo.io</generator><atom:link href="/en/docs/apps-func/appce-docsolutions-for-ce/index.xml" rel="self" type="application/rss+xml"/><item><title>Docs: DocSolutions for CE - Setup</title><link>/en/docs/apps-func/appce-docsolutions-for-ce/appce-docsolutions-for-ce-sharepoint-setup.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/en/docs/apps-func/appce-docsolutions-for-ce/appce-docsolutions-for-ce-sharepoint-setup.html</guid><description>
&lt;h2 id="sharepoint-site-setup">Sharepoint Site Setup&lt;/h2>
&lt;p>In SharePoint Site setup (DCS) you need to connect Dynamics 365 CE with SharePoint using an AppRegistration.&lt;/p>
&lt;p>Information required are:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Field&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Application (client) ID&lt;/td>
&lt;td>The Azure application client ID.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Client Secret&lt;/td>
&lt;td>Azure application Client Secret.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Tenant Id&lt;/td>
&lt;td>The Azure tenant ID to which connect the client (where SharePoint Site is present)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="pre-requisites">Pre-requisites:&lt;/h3>
&lt;ul>
&lt;li>Configure SharePoint Site Integration – refer to &lt;a href="https://learn.microsoft.com/en-us/power-platform/admin/set-up-sharepoint-integration">Benefits of document management with SharePoint integration - Power Platform | Microsoft Learn&lt;/a>&lt;/li>
&lt;li>Create an App Registration and configure it as documented in DocSolutions for Sharepoint (BC)&lt;/li>
&lt;li>Setup user must have &lt;strong>System Administrator&lt;/strong> + &lt;strong>DocSolutions Admin&lt;/strong> roles assigned&lt;/li>
&lt;li>Application user must have &lt;strong>DocSolutions User&lt;/strong> Role assigned.&lt;/li>
&lt;/ul>
&lt;h3 id="important-for-error-comunication">Important for error comunication:&lt;/h3>
&lt;p>DocSolutions will notify errors creating Sharepoint folders or license messages with in-app notification; &lt;strong>this feature must be enabled in all the apps where the messages must be shown&lt;/strong>.&lt;br>
From Power App portal: open the app (all apps used by customer with DocSolutions use), click on settings, select Features tab and &lt;strong>enable In-app notifications&lt;/strong> flag&lt;br>
&lt;img width="" src="https://docs.eos-solutions.it/Images/PR001113-0/dcs4bc-setup-01inappnotification.png">&lt;br>&lt;/p>
&lt;h3 id="setup-and-sharepoint-site-configuration">Setup and Sharepoint Site Configuration&lt;/h3>
&lt;ol>
&lt;li>Open DocSolutions App and go to SharePoint Sites&lt;/li>
&lt;li>Open the Site where DocSolutions must be configured (can be more than one)&lt;/li>
&lt;li>Open DocSolutions tab and configure the following fields:
&lt;ul>
&lt;li>Client ID&lt;/li>
&lt;li>Client Secret&lt;/li>
&lt;li>Tenant ID&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;p>Once the record is saved the client secret will be encypted and SharePoint Site ID will be populated.&lt;br>
Message Status indicates the connection test result; if an error message is shown, please correct the configuration accordingly.&lt;/p>
&lt;p>
&lt;div class="alert alert-warning" role="alert">
&lt;h4 class="alert-heading">NOTE&lt;/h4>
A valid license of DocSolutions for SharePoint must be activated for the customer based on tenant ID.
&lt;/div>
&lt;img width="" src="https://docs.eos-solutions.it/Images/PR001113-0/dcs4bc-setup-02siteconfiguration.png">&lt;br>&lt;/p>
&lt;h2 id="docsolutions-library-setup">DocSolutions Library Setup&lt;/h2>
&lt;p>Each entity in Dynamics 365 CE can be configured to use DocSolutions for CE; in case the entity is not configured in Document Management, it will be added.&lt;/p>
&lt;p>DocSolutions for CE can create folder and subfoders in SharePoint site, but Document Libraries must be created with the standard functionality or manually in site.&lt;/p>
&lt;h2 id="library-configuration">Library Configuration&lt;/h2>
&lt;ol>
&lt;li>Open DocSolution Libraries link&lt;/li>
&lt;li>Add new record (of type DocSolutions Librariy&lt;/li>
&lt;li>The following fields must be populated:&lt;/li>
&lt;/ol>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Name/Code&lt;/th>
&lt;th>Code or Name of DocSolutions Library&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Entity/Table name&lt;/td>
&lt;td>Entity/Table logical name&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>SharePoint Site&lt;/td>
&lt;td>SharePoint Site from list of existing SharePoint Sites&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Folder Pattern&lt;/td>
&lt;td>String composed from a mix of fields values and fixed text; &lt;strong>fields (logical name) must be specified in curly brackets&lt;/strong>; e.g. {fieldname}; these fields must be set as required to have the correct folder name compiled at creation&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Parent Type&lt;/td>
&lt;td>Can be: &lt;br>&lt;strong>Library&lt;/strong>: the folder is created under the specified Document Library&lt;br>&lt;strong>Parent Record&lt;/strong>: the folder is created under the folder of a parent record folder (under a fixed subfolder – eg. account/&amp;lt;accountFolder&amp;gt;/quotes/&amp;lt;quoteFolder&amp;gt; or directly under the record folder- eg. account/&amp;lt;accountFolder&amp;gt;/&amp;lt;quoteFolder&amp;gt; in case of quote)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>If Parent Type = &lt;strong>Library&lt;/strong>&lt;/td>
&lt;td>&lt;strong>SharePoint Document Library Name&lt;/strong>: must exists in Sharepoint; is the SharePoint Library name where the folders are created&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>If Parent Type = &lt;strong>Parent Record&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Parent DocSolutions Library&lt;/strong>: parent DocSolution Library that create the parent folder (required)&lt;br>&lt;strong>Parent Folder&lt;/strong>: fixed folder name (optional)&lt;br>&lt;strong>Parent Field&lt;/strong>: field logical name that link entity record with parent record&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Integration Key&lt;/td>
&lt;td>Optional field indicating the integration field used for BC-CE integration&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Integration Path Field&lt;/td>
&lt;td>Required if folders must be shared between CE and BC; in account and product tables are present eosapp_dcspath fields ready for this scope; this field values must be synchronized between the two systems&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Message Status (DCS)&lt;/td>
&lt;td>Will be automatically filled with configuration result (OK or error)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;ol start="4">
&lt;li>In addition fixed subfolders can be created in the underying subgrid.&lt;/li>
&lt;/ol>
&lt;p>&lt;br>&lt;br>
Example for DCS Library with &lt;strong>Parent Type = Library&lt;/strong>&lt;br>
&lt;img width="" src="https://docs.eos-solutions.it/Images/PR001114-0/dcs4bc-setup-03libconfiguration.png">&lt;br>&lt;/p>
&lt;p>&lt;br>&lt;br>&lt;br>
Example for DCS Library with &lt;strong>Parent Type = Parent Record&lt;/strong>&lt;br>
&lt;img width="" src="https://docs.eos-solutions.it/Images/PR001114-0/dcs4bc-setup-04libconfiguration.png">&lt;br>&lt;/p></description></item><item><title>Docs: DocSolutions For Sharepoint (DCS) - How to configure Azure app, App Key and Secret</title><link>/en/docs/apps-func/appce-docsolutions-for-ce/docsolutions-for-sharepoint-dcs-how-to-configure-azure-app-app-key-and-secret.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/en/docs/apps-func/appce-docsolutions-for-ce/docsolutions-for-sharepoint-dcs-how-to-configure-azure-app-app-key-and-secret.html</guid><description>
&lt;h2 id="how-to-configure-azure-app-app-key-and-secret">How to configure Azure app, App Key and Secret&lt;/h2>
&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/3aP9ocChL9U" title="DocSolutions For Sharepoint - How to configure Azure app, App Key and Secret" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>&lt;/iframe>
&lt;p>&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Pay Attention&lt;/h4>
When copying Application ID and Directory ID to Business Central pay attention to not invert values !!
&lt;/div>
&lt;p>&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;p>Firstly you need to Log in to Microsoft Azure (&lt;a href="https://portal.azure.com/">https://portal.azure.com/&lt;/a>#home)&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/1_EX069.03 Azure Setup.png">&lt;br>
&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;p>and search &amp;ldquo;App registration&amp;rdquo;&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/2_EX069.03 APP Reg.png">&lt;br>
&lt;br>&lt;br>
Open &amp;ldquo;New registration&amp;rdquo; and enter the Name and the URL callback:&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/3_CallBack.png">&lt;br>&lt;/p>
&lt;p>&lt;br>&lt;br>&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Business Central&lt;/th>
&lt;th>URL&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>SaaS&lt;/td>
&lt;td>Enter &lt;a href="https://businesscentral.dynamics.com/OAuthLanding.htm">https://businesscentral.dynamics.com/OAuthLanding.htm&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>onPrem&lt;/td>
&lt;td>URL/InstanceName/OAuthLanding.htm &lt;br> (eg. http://localhost:8080/BC160/OAuthLanding.htm)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Press Register.&lt;/p>
&lt;p>&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;p>&lt;strong>Authentication&lt;/strong>&lt;/p>
&lt;p>In Authentication check &amp;ldquo;Access Tokens&amp;rdquo; e &amp;ldquo;ID Tokens&amp;rdquo;. Set to Yes &amp;ldquo;Allow public client flow&amp;rdquo; and Save&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/4_EX069.03 Authent.png">&lt;br>&lt;/p>
&lt;p>&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;p>&lt;strong>Certificate &amp;amp; Secrets&lt;/strong>&lt;/p>
&lt;p>In Certificate &amp;amp; Secrets add a &amp;ldquo;New Client Secret&amp;rdquo; and set the Expiration to &amp;ldquo;Never&amp;rdquo;.&lt;/p>
&lt;p>Once created it must be copied and saved because it will only be visible during creation&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/1_EX069.03 Secret.png">&lt;br>&lt;/p>
&lt;p>&lt;br>&lt;br>
&lt;strong>API Permissions&lt;/strong>&lt;/p>
&lt;p>In API Permissions add a new permission &amp;ldquo;Microsoft Graph&amp;rdquo; type and choose &amp;ldquo;Application&amp;rdquo;&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/5_EX069.03 API.png">&lt;br>
&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;p>finally select the &amp;ldquo;sites.readwrite.all&amp;rdquo; permission and click on &amp;ldquo;Add permissions&amp;rdquo;&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/6_EX069.03 Permission.png">&lt;br>
&lt;br>&lt;br>&lt;br>&lt;br>&lt;/p>
&lt;p>Click on &amp;ldquo;Grant admin consent for X&amp;rdquo; (it will start the authorization request)&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/98_EX069.03 Admin GRANT.png">&lt;br>&lt;/p>
&lt;p>finally return to the &amp;ldquo;Overview&amp;rdquo; tab and copy the client ID and tenant&lt;/p>
&lt;p>&lt;img width="" src="https://docs.eos-solutions.it/Images/ex069.03/docsolutions for sharepoint (dcs) - how to configure azure app, app key and secret/99_EX069.03 Copy To ClipBoard.png">&lt;br>&lt;/p></description></item></channel></rss>