Views:


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:

  1. 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.
Set Up SharePoint Integration from Power Platform Admin Center:
  1. Open the Power Platform admin center.
  2. Under Resources, choose Power Pages sites.
  3. Select the site where you want to enable SharePoint integration and click Manage.
  4. On the site information page, in the Services section, toggle the SharePoint Integration control to "Yes".
  5. 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.
Enable Document Management for Tables:
  1. Ensure that document management is enabled for the appropriate tables to store documents related to table records in SharePoint.
Configure the Appropriate Form to Display Documents:
  1. Add a subgrid component to the form that allows working with related documents on a webpage.
  2. Identify the table and the corresponding form where document management capabilities will be used.
  3. Open the Data workspace form designer for the table and add the document location subgrid component.
Create Appropriate Table Permission and Assign It to the Appropriate Web Role:
  1. Establish necessary access to view and upload documents by creating table permission records.
  2. Ensure that the appropriate privileges are assigned to allow read and write access to documents.
For detailed steps, refer to the documentation on how to enable SharePoint integration and manage documents in Power Pages.