Showing results for 
Search instead for 
Did you mean: 
New Member

Create approval flow based on file name



I am currently working on building out a sharepoint site that needs to act as a secure portal for media requests and approvals. Essentially I am looking to leverage forms so that field users can submit a request which is then received by my team. I then upload a respond document (.xl file) which immediately requires two-tier aproval that is conditional to the requesting party.


As we utilize standard naming conventions I am hoping to set the secondary approval (once the file has been approved by the admin) to be assigned to the appropriate contact based on the file name. For exampled if the file name begins with 05 67 it needs to be sent to, for their approval. It the file begins with 04 85 then it would be routed to a different group for their approval. This approval system would only need to be updated as secondary approvers are updated. 


How do you suggest making this happen?




Community Support
Community Support



You could add the condition to check if the file name begin with 05 67 or the file name begin with 04 85,you could refer to screenshot below to create the flow:



Best regards,


Hi Alice,


@v-yuazh-msftThis is great, thank you! I was able to complete the flow as suggested. Next, if I wanted to create a routing system for MULTIPLE instances (for example, if the file name wasnt 05 67, but it was 04 85 then it would go to a different group of people, what would I do there?






As is shown in my screenshot below:


If the file name start with 05 67, the approval will be sent to a group in the "Start an approval" action,

If the file name start with 04 85, the approval will be sent to a different  group in the "Start an approval 2" action.


If you would like to check if the file name is equal to 05 67 or 04 85, and send the approval to the special group, you could refer to screenshot below to create the flow:




Best regards,


Helpful resources

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (59,350)