cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kyon84
Level: Power Up

Identifying people based on file name

Hello,

 

i need to build flow that trigger each time file is created in library. Next step is sending email notifications to a relevant person. This person is located in sharepoint list. Flow should track this person based on file name (lets say first three characters should lead to person, which is connected to these characters).

 

Probably need to split file name at first and create variable but then I'm lost. Can you please advise?

 

Thank you.

 

1 REPLY 1
Dual Super User
Dual Super User

Re: Identifying people based on file name

Hi @kyon84 

 

You can start with the trigger -> when a file is created

Use the initialise variable action and initialise an array variable. Use the expression split(filename, '-') assuming the file name is abc-xyz.pdf. now, use the get items action and in the filter query use the column name that is associated to the person in the sp list and the query will be Column Name eq 'first(arrayvariable)'

Extract the email address from the get items list and send an email. 

 

Please see the screenshot below:

fahs.png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,910)