cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Makeavvish
New Member

How to pass an Variable as an parameter for file location in Excel

Hi All,

I am trying to pass an Variable as the parameter for the file location in excel connector. but, it is giving me an Status 400 Error. 

but, the variable has the exact same value as that of the File Location.

Can we pass an variable as file location dynamically in Excel connector?

if not, Do we have a work around for that?

 

Reply would be highly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

Hi @Makeavvish

 

Thank you for posting.

 

According to your description, you would like to input dynamic content in file location using excel connector. If any misunderstanding, please kindly let me know.

 

Actually, we can use dynamic value in file location via functions. The issue why you still get error is because Excel doesn’t use the file name to find the file. It uses the file ID instead.

 

Here is the workaround for your requirement:

Expression: concat(‘TableName’)

v-duann-msft_0-1621217490088.png

 

Once tested, I’m able to get table details as below:

v-duann-msft_1-1621217490093.png

 

Here are some videos or similar threads for your reference:

https://www.youtube.com/watch?v=Cm4h5_It7qo

https://www.youtube.com/watch?v=QcWjAt7QVn4

https://powerusers.microsoft.com/t5/Building-Flows/Get-File-Content-from-OndDrive-with-dynamic-file-...

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

1 REPLY 1
v-duann-msft
Community Support
Community Support

Hi @Makeavvish

 

Thank you for posting.

 

According to your description, you would like to input dynamic content in file location using excel connector. If any misunderstanding, please kindly let me know.

 

Actually, we can use dynamic value in file location via functions. The issue why you still get error is because Excel doesn’t use the file name to find the file. It uses the file ID instead.

 

Here is the workaround for your requirement:

Expression: concat(‘TableName’)

v-duann-msft_0-1621217490088.png

 

Once tested, I’m able to get table details as below:

v-duann-msft_1-1621217490093.png

 

Here are some videos or similar threads for your reference:

https://www.youtube.com/watch?v=Cm4h5_It7qo

https://www.youtube.com/watch?v=QcWjAt7QVn4

https://powerusers.microsoft.com/t5/Building-Flows/Get-File-Content-from-OndDrive-with-dynamic-file-...

 

Hope the content above may help you.

 

Best regards,

Anna

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

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

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,672)