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

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,458)