The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Based on the scenario described, the requirement is to automatically extract PDF attachments from Outlook emails, read specific information inside those PDF documents (such as invoice number, customer name, or date), and use that extracted data to rename the files before saving them into a SharePoint document library.
As far as I know, this cannot be achieved with standard Power Automate actions alone, because Power Automate does not natively understand or parse the content inside PDF files. An AI-based document processing capability is required to read and interpret the document content before renaming and storing the files.
That said, the recommended and supported approach is to use Power Automate together with AI Builder’s document processing model:
- Create or use an AI Builder Document Processing model (either a prebuilt model such as Invoice Processing, or a custom document processing model if the PDF layout is specific).
- Train and publish the AI Builder model to extract the required fields from the PDF (for example: invoice number, customer name, document date).
- Build an automated Power Automate cloud flow that:
- Triggers when a new email arrives in Outlook (personal or shared mailbox).
- Filters and retrieves only PDF attachments.
- Sends each PDF file to the AI Builder Process documents action.
- Uses the extracted field values returned by AI Builder to dynamically construct a new file name.
- Creates the renamed file in the target SharePoint document library.
- Optionally add conditions to handle missing or low-confidence extraction results (for example, applying a fallback file name or routing the file for manual review).
You can watch here as a tutorial: https://www.youtube.com/watch?v=Co5oar7d4Qc
Note: This information is provided as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.
Link documents:
- Use a document processing model in Power Automate
- Create a document processing custom model
- Document processing model overview
Hope my answer will help you, for any further concern, kindly let me know in the comment section.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread