cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Create a blank excel sheet in sharepoint using flows

Hi

 

Im trying to use flows to create a blank excel sheet that i can then use in the same flow to populate with data from an azure active directory connector.

 

I have tried to use the create file in sharepoint connector, but excel cannot open the file.

I think this can be done with json editing, however i have no experince in this field.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Solution Sage
Solution Sage

Hi @Anonymous ,

I have made a test on my side, it has the same issue with you.

I think it‘s because that when you create a excel file, the action can't identify where to store the file content(which range, which cells).

To check this issue,I have made some tests.

When I used file content from a excel file to create a excel file. The excel file can be read successful.

However, when I used the content from other types file, the excel file can't be opened as your issue.

If you want to insert the data from an azure active directory into a excel file. I am afraid you need to create a excel with a table in the SP first.

Then you can use the 'Add a row into a table' action of Excel online to insert the data into the file.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Solution Sage
Solution Sage

Hi @Anonymous ,

I have made a test on my side, it has the same issue with you.

I think it‘s because that when you create a excel file, the action can't identify where to store the file content(which range, which cells).

To check this issue,I have made some tests.

When I used file content from a excel file to create a excel file. The excel file can be read successful.

However, when I used the content from other types file, the excel file can't be opened as your issue.

If you want to insert the data from an azure active directory into a excel file. I am afraid you need to create a excel with a table in the SP first.

Then you can use the 'Add a row into a table' action of Excel online to insert the data into the file.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

New Member

There is another option.

 

I actually copy the template excel file in the sharepoint library.

 

These are the steps I took to complete this:

 

  1. Create an excel file which we will use as our template (this could be completely blank if you need it to be) and save locally on your machine.
  2. In the SharePoint library you want to use, upload the saved file from step 1 as a new template. This will then appear in the list of templates
  3. In your flow, use the SharePoint copy file action and navigate to your library, in the forms folder you can see your template, use this to copy it to the location you need your blank file in. You can also set it to overwrite a file with the same name if needed.
  4. You can now use this to apply later flow operations to.

I hope this helps.

 

Great answer!  I tried this but ran into just one issue.  Apparently copying the file from the Template/Forms directory doesn't work as Flow can't access that folder within SharePoint Online. Instead, you can copy the file from another "Template" folder that you have created and use that as your source of files to replace theone you want restored to default.  

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (36,417)