cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Slappo
Level: Powered On

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
v-zhos-msft
Level 10

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
v-zhos-msft
Level 10

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

morph1904
Level: Power Up

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.

 

JakeRoss
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 64 members 3,287 guests
Recent signins:
Please welcome our newest community members: