In this series I’m going to step through how you can add an integration with SharePoint to the Employee Self-Service Portal in Dynamics 365 without using server-side code. While the recent news that the October ’18 release of the Portal capabilities for Dynamics 365 will include out-of-the-box SharePoint integration may make this series obsolete in a hurry, I’m sharing it as it might inspire other solutions that can leverage the same techniques.
In order to interact with SharePoint without using server-side code, we’re going to use the SharePoint REST API and call it directly from JavaScript on our portal. Obviously SharePoint requires that these requests be authenticated – anonymous users don’t have access to use the SharePoint REST API.
While, in theory, we could hard-code credentials into our JavaScript, this would be bad practice. Therefore, we want to leverage the user’s existing session to allow us to access SharePoint. This only works if the user is logged in via Azure AD, with a user account that has SharePoint privileges.
So, if we’re assuming that the user has to use Azure AD to log into the portal, this means the most likely scenario is that you’re implementing employee self-service.
To be clear, there is no reason you couldn’t use this technique on any of the portals, as long as you’re using Azure AD for authentication. You could also, in theory, only show the SharePoint integration pieces if the user is logged in to Azure AD, and hide it for everyone else. But I’m not going to explore that in this series.
In this series, we’re going to add the ability to view SharePoint documents related to a case as exposed in the Employee Self-Service Help Desk.
Let’s assume:
The technique involves the following steps, which I’ll describe in upcoming posts:
[…] post Adding SharePoint Integration to the Employee Self-Service Portal Without Server-side Code – P… appeared first on Engineered […]
[…] my third post in the series on how you can add an integration with SharePoint to the Employee Self-Service Portal in Dynamics […]
[…] my third post in the series on how you can add an integration with SharePoint to the Employee Self-Service Portal in Dynamics […]
[…] my fourth and final post in the series on how you can add an integration with SharePoint to the Employee Self-Service Portal in Dynamics […]
[…] my fourth and final post in the series on how you can add an integration with SharePoint to the Employee Self-Service Portal in Dynamics […]
my requirement is there is a custom page developed in powerapps portal once user upload a file it will be added in sharepoint folder and when user deletes a file in portal file gets deleted from sharepoint folder
when user upload file then that file should be retrieved so that there is a hyperlink which will show shrepoint file once user hits file should be downloaded