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

Use of variables fo Excel actions

Hello,

 

I need to replicate a flow on multiple SharePoint sites. To avoid to have to change all the actions linked to Excel, I would like to use variables to specify the different elements needed to locate the file on the SharePoint site.  SO I will onl have to update variable at the beginning of the flow.

 

Here is what I want to do :

2020-10-09 08-56-25_Excel_Variable.jpg

 

When I am executing that I am receiving an error on the file name : 

{
  "status"400,
  "message""The parameter 'file' has an invalid value '/Test/Test_File.xlsx'."
}
 
Here is the "INPUTS" of the actions : (top one is for a "standard" way to specify, "bottom" is with variables) 
2020-10-09 09-05-38_Excel error.jpg
 
How this can be done ?
 
Thanks
3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

@coutep 

 

Hey Mate,

 

I have come across this problem is the past and I had to Reverse Engineer a little as the Drive ID always complaining. 

 

What I did was create a dummy file, filled in all the correct values and ran the Flow and after the Power Automate executed, I clicked in raw inputs and copied the drive ID.

 

 
 
 

Untitled.png

 

Executed the Power Automate and got correct results.

 

Untitled1.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

 

Highlighted
Dual Super User III
Dual Super User III

Hi!

My suggestion is, either to use the 'Identifier' attribute that is part of either Sharepoint 'Get file properties' or 'Get files (properties only)' output action blocks...

Flow_variableListRows.png

 

...or, use the 'Id' attribute that is part of Sharepoint 'Get file metadata using path' action block...

Flow_variableListRows_1.png

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted

It works fine this way … 

I will try the other solution to see if it is also working for me .

 

Thanks for your quick answer....

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (2,470)