How to Bulk Populate SharePoint Links in Power Apps Records
Question details
The user needs a method to automatically generate and populate SharePoint document folder links for thousands of bulk-uploaded Power Apps or Dynamics 365 records.

- Product
- Power Apps and Dynamics 365
- Device & OS
- not provided
- Scenario
- Uploading thousands of records in bulk where their associated SharePoint document folders must be identified and linked automatically.
- Observed behavior
- SharePoint document links are not attached to a Dataverse record until it is manually opened, leaving bulk-uploaded records with empty SharePoint link fields.
Ensure you have adequate administrative privileges in Power Apps, Dynamics 365, and SharePoint to create and run Power Automate flows. Always test your flow on a small, controlled batch of records to verify correct mapping before processing thousands of entries.
Use Power Automate to Bulk Map SharePoint Links
Create a Power Automate flow to find records with empty link fields, locate the correct SharePoint folder, and automatically update the Dataverse record.
By default, Dataverse tables only generate SharePoint document location links when a user manually accesses the Documents tab of a specific record. To handle bulk uploads, you can use Power Automate to query the database, retrieve the intended folder paths, and write the URLs back to the record metadata programmatically.
Create a new Power Automate flow with a manual or scheduled trigger. Add the 'List rows' action for Dataverse and configure an OData filter query to return only the records where the SharePoint Link field is currently null or empty.
Inside an 'Apply to each' loop for the retrieved records, add an action to fetch the corresponding SharePoint Document Location associated with the record's unique identifier. Ensure the folder structure matches your Dynamics 365 Document Management settings.
Add the 'Update a row' action for Dataverse. Map the Row ID from the initial 'List rows' step and write the retrieved SharePoint folder URL or Document Location reference into the SharePoint Link column.
Save the flow and run it manually on a test subset of 5 to 10 records. Verify in Power Apps or Dynamics 365 that the document links are successfully populated and that clicking them correctly opens the intended SharePoint folder.

Manage Your Office Documents Seamlessly with WPS Office
While you use Power Automate to configure database links between Dynamics 365 and SharePoint, you need a robust, lightweight suite to actually open and edit the documents stored in those folders. WPS Office serves as a highly compatible, all-in-one free alternative to Microsoft Office.

Frequently Asked Questions
Why don't SharePoint links generate automatically upon bulk upload in Power Apps?
By default, Power Apps and Dynamics 365 only trigger the creation of a SharePoint document location when a user actively navigates to the Documents tab of a specific record in the user interface. Backend bulk uploads bypass this UI trigger, leaving the links unpopulated.
Can I use classic Dynamics 365 workflows instead of Power Automate for this task?
While classic workflows could historically perform metadata updates, Microsoft highly recommends using Power Automate for this scenario due to its superior performance with bulk operations, its robust 'List rows' pagination capabilities, and its deep native integration with SharePoint APIs.
How do I avoid throttling limits when updating thousands of SharePoint links?
When dealing with thousands of records, turn on 'Pagination' in the settings of your 'List rows' action to fetch all necessary records. Additionally, consider batching the updates or adding a 'Delay' action within your loop to respect Dataverse API rate limits and avoid 429 Too Many Requests errors.




