Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Issues in Power Automate Flow for File Categorization in SharePoint

(1) ShareShare
ReportReport
Posted on by
Description:
      I have a SharePoint document library where I need to categorize files based on predefined category keywords. My Power Automate flow fetches file names, matches them against keywords, and then updates the category in SharePoint. However, I am facing two issues:


         Issue 1: Inaccurate Keyword Matching

  • I am using a loop with the contains() function to check if a filename includes a category keyword.
  • The function is not working 100% accurately, and some files remain uncategorized even when they contain matching keywords.
  • I need a 100% accurate method to match keywords within filenames.
          Issue 2: Batch Request for Updating Categories Fails
  • I am using Power Automate Batch Requests to update file categories in SharePoint.
  • The batch request fails, and the category is not updated.
  • I need a working batch request implementation to update multiple files efficiently.

       Expected Outcome:

  1. Accurate keyword matching in filenames to ensure correct categorization.
  2. Successful batch request execution to update the SharePoint document library with the correct categories.
      Steps Taken So Far:
  1. Implemented loop with contains() function for keyword matching (not fully reliable).
  2. Tried Batch Requests for SharePoint updates (not working).
     Request for Assistance:
  1. What is the best way to accurately match keywords in filenames?
  2. How can I correctly format and send a batch request to update file categories in SharePoint?


Would appreciate any step-by-step solution or Power Automate expressions that could help.
 

Thank you!
Bharat

Categories:
  • Michael E. Gernaey Profile Picture
    39,085 Super User 2025 Season 1 on at
    Issues in Power Automate Flow for File Categorization in SharePoint
     
    Happy to help, but need to have more information.
     
    • I am using a loop with the contains() function to check if a filename includes a category keyword.
    • The function is not working 100% accurately, and some files remain uncategorized even when they contain matching keywords.
    Please post some pictures with your findings based on a flow, with details specific to an item you believe the contains failed on.
    go into your loop find one, making sure there are no spaces etc, and please share pictures of that with the inputs and outputs
     
    Cheers
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,699 Most Valuable Professional

Leaderboard

Featured topics