cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Leopoldo8a
Regular Visitor

Using value of column to rename file

Good morning, 

 

I am building a flow that extracts files from an SFTP and then saves them on a sharepoint location. These files are csv's with some transactional information. In my case I need to split them by currency. However, the value of the currency is within the csv. I wanted to know if it is possible to access to the csv and extract for instance the first value of the second row and column and then use it dynamically to name the file. In this case the name of the file wold already include the 82506210 but I want it to be 82506210 + EUR(which I extract from the file once opened)

 

Leopoldo8a_0-1617010793435.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Super User
Super User

Hi @Leopoldo8a 

 

Here is a wee solution for you to try.  I have put the CSV into a compose but you would use get file.

DamoBird365_0-1617016874069.png

 

Output is :

DamoBird365_1-1617016898011.png

 

 

Return line is literally a return line in a compose and is used to split the csv contents into an array.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

View solution in original post

2 REPLIES 2
DamoBird365
Super User
Super User

Hi @Leopoldo8a 

 

Here is a wee solution for you to try.  I have put the CSV into a compose but you would use get file.

DamoBird365_0-1617016874069.png

 

Output is :

DamoBird365_1-1617016898011.png

 

 

Return line is literally a return line in a compose and is used to split the csv contents into an array.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

View solution in original post

Leopoldo8a
Regular Visitor

Worked like a charm. Thank you so much

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,381)