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

How to copy an SFTP file to Sharepoint based on condition?

I have set up a flow that connects to an SFTP location.  When the trigger event happens, I would like to check the file name and post to Sharepoint if a file name match is found:

Chad_OSU_0-1598722251050.png

Here is an example of the file name:

Chad_OSU_1-1598722326463.png

Files come daily and I would like the new file to overwrite the previous file.

 

Any help is appreciated.  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Chad_OSU ,

 

You could add a "Get file metadata" action under the trigger, then the action would have a Name output, the name output would not encoded.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Regular Visitor

Is there a reason I can't select the "non-encoded" file name?

Community Support
Community Support

Hi @Chad_OSU ,

 

You could add a "Get file metadata" action under the trigger, then the action would have a Name output, the name output would not encoded.

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (21,226)