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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (25,060)