Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Create a file and read the same file

Hi Folks,

I am creating a file in a document library after fetching it from list item attachment. File type is excel. I want to read the same excel file using power automate for further process. File template is same in all cases. 

Please suggest how can I do this .

Community Champion
Community Champion



Excel actions does not accept dynamic path of the Excel files.


All the excel files should have .xlsx file extension and also the data should be in a table in the Excel file.


You can use below blog to read the excel file dynamically:



Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

Hi @Meshare ,


This seems to be working for me:



I used the "Create file" action to create the workbook (whose content was retrieved from a SharePoint list attachment). Then I passed the "Id" property from the "Create file" action to the Excel Online (Business) action (in my example, reading all the worksheets out of the workbook).


Hope this helps!



Hi @Yutao ,

I am able to get worksheets as per your solution now I want to read tables from worksheets and perform calculation on it's cells . Can you please guide me how can I achive this further.

Hi @Meshare ,


Glad that helped!


In order to interact with the data in the workbook, you'll need to use the appropriate actions from the Excel Online (Business) connector. For example you can use the "Get a row" action to read out the cells of a row out of a table then you can do calculation based on those cells in the succeeding actions.


Below is a simple example that reads one row from a table of my workbook and adds up the numbers from two of the cells.


Here is the sample table:



Here is the sample flow that reads a table row from a newly created workbook and adds up the numbers from two cells, then sends the result (in my case, "Result = 5") through the mobile notification.



The expression used to calculate the result (in the mobile notification action) is:

add(int(outputs('Get_a_row')?['body/Value1']), int(outputs('Get_a_row')?['body/Value2']))


I would suggest you read a bit more on how to use the Excel Online (Business) connector in Power Automate. There're a bunch of good articles out there on the internet. For example:


You can also search up in this forum to see many great suggestions/tips contributed by the community.


Hope this helps!



Hi @rsaikrishna ,

I can understand that excel connection can not take dynamic path.

Can I update my excel (eg Book1.xslx) which is stored in a library with dynamic  content after getting excel attachment content from list item  and each time use the same excel for reading.  

Please suggest.

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,055)