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

Identifying people based on file name



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.


Super User
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:


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


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.


Flow Community User Group Member Badge

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


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 330 members 3,777 guests
Please welcome our newest community members: