web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AI Builder / File Look-Up
Power Automate
Unanswered

AI Builder / File Look-Up

(0) ShareShare
ReportReport
Posted on by 10

Novice user here and I've hit a wall.
Use case: Automated invoice look-up based on a forms response, used by multiple sites across the country.

I've set up an AI Model that extracts the PO Number and the delivery zip code from the invoice, and then renames the file to the cadence of "PONumber-ZipCode.pdf" in a pre-determined SharePoint folder.

I'm now trying to establish the flow that, based on the user's entry of PO Number and Zip Code, PowerAutomate would search the folder for said invoices and return a link to a URL to the document results via email. My stall point is that some zip codes are coming in as 5-digit where some have full postal zip of 5digit-4digit, and some PO#s are including the Hashtag or some additional letters. Therefore, I can't just have it search for the file name in such a set string. I'm trying to get the system to return up to 5 files (margin for error, especially during pilot).

My flow is below, but I don't know how to set up the query to search for file names that include the variations, not just a pre-set static file name cadence. Can anyone assist? 


Invoice.png

Categories:
I have the same question (0)
  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @dhaberkorn - welcome to Power Automate and AI Builder!

     

    There are two operators you can use in the filter that can help you with this: startswith and substringof. Here are some examples on how to use them in your flow:

     

    JoeFMSFT_0-1657824159348.png

     

    JoeFMSFT_1-1657824172033.png

     

    You can find more information about these operators here: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests#odata-query-operators-supported-in-the-sharepoint-rest-service

     

    Hope this helps! 🙂

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard