Applies to Product - Power Pages
What’s happening?
Customers are experiencing difficulties connecting Power Pages with SharePoint libraries, resulting in errors such as 'Sequence contains no elements' or inability to establish a connection.
Reason:
The underlying cause of this may relate to the configuration of SharePoint integration settings or the status of the SharePoint libraries.
Resolution:
Enable Document Management Functionality in Model-Driven Apps:
- Use server-based SharePoint integration to enable document management functionality in model-driven apps. This allows a server-to-server connection between model-driven apps and SharePoint.
- Open the Power Platform admin center.
- Under Resources, choose Power Pages sites.
- Select the site where you want to enable SharePoint integration and click Manage.
- On the site information page, in the Services section, toggle the SharePoint Integration control to "Yes".
- Confirm the action to enable the website to communicate with SharePoint. The website will restart and be unavailable for a few minutes during this process.
- Ensure that document management is enabled for the appropriate tables to store documents related to table records in SharePoint.
- Add a subgrid component to the form that allows working with related documents on a webpage.
- Identify the table and the corresponding form where document management capabilities will be used.
- Open the Data workspace form designer for the table and add the document location subgrid component.
- Establish necessary access to view and upload documents by creating table permission records.
- Ensure that the appropriate privileges are assigned to allow read and write access to documents.
