cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Solution Sage
Solution Sage

Re: Create a blank excel sheet in sharepoint using flows

Hi @Slappo ,

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
Highlighted
Solution Sage
Solution Sage

Re: Create a blank excel sheet in sharepoint using flows

Hi @Slappo ,

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

Highlighted
New Member

Re: Create a blank excel sheet in sharepoint using flows

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.

 

Highlighted
Regular Visitor

Re: Create a blank excel sheet in sharepoint using flows

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
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (10,462)