Copy an Excel Online Workbook and Create an Editing Link with Power Apps
Question details
Create an independent copy of an Excel Online workbook and give users an editable link through Power Apps.

- Product
- Microsoft Power Apps, Power Automate, and Excel Online
- Device & OS
- not provided
- Scenario
- A Power Apps user needs to open and edit a new copy of a workbook stored in OneDrive or SharePoint.
- Observed behavior
- The desired result is a separate workbook with an editing link returned to Power Apps.
Store the source workbook in OneDrive for Business or SharePoint and confirm that the flow connection can copy files and create sharing links there. Check your organization's sharing policies and decide which users should be allowed to edit each copy.
Copy the workbook and return an editing link with Power Automate
Use a flow called from Power Apps to create a separate workbook and return its sharing URL.
A new sharing link alone does not create an independent workbook. The flow must copy the file first, then create a link to the copy.
In Power Automate, create an instant cloud flow with the Power Apps (V2) trigger. Add any inputs needed to identify the source workbook or name the copy.
Add the OneDrive for Business or SharePoint Copy file action. Select the source workbook and a destination, and give each copy a unique name to avoid conflicts.
Use the copied file's identifier from the copy action if available. Otherwise, add the connector's Get file metadata using path action and select the destination path.
Add Create sharing link for the copied file. Choose an edit link and an audience allowed by your organization's policies, then select the copied file's identifier.
Add Respond to a Power App or flow with a text output containing the sharing link URL. In Power Apps, add the flow to the app and call it from a button's OnSelect property, then use Launch with the returned URL.

Work with Excel workbooks in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue working with your existing documents; the Power Apps and Power Automate workflow still requires Microsoft services.

Frequently Asked Questions
Can Power Apps create an independent workbook by generating a new link?
No. A new link can point to the existing workbook, but an independent workbook requires a file copy. Use a Power Automate Copy file action before creating the sharing link.
How do I make sure users can edit the copied workbook?
In the flow's Create sharing link action, select an edit link and an appropriate audience. The available choices depend on the storage location and your organization's sharing policies.
How does Power Apps receive the link from the flow?
Add Respond to a Power App or flow after the sharing-link action and return the URL as a text output. Call the flow from the app, then pass the returned URL to Launch.
How can I prevent copies from overwriting each other?
In the Copy file action, use a unique destination filename for each request, such as a name containing a generated identifier. Also check the action's conflict behavior.




