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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Method to check if a D...
Power Automate
Unanswered

Method to check if a Document Set in SharePoint Online exist based on a metadata value

(0) ShareShare
ReportReport
Posted on by 77

Hi, all.

 

I'm having trouble finding the right method. What I want to acomplish:

1. Files is created in a SharePoint Document library A under a folder named with a GUID

2. It should check if a document set in Document library B with a value in column GUID is the same as the GUID in the folder name in 1.

 

I thought maybe a "Send an HTTP request to SharePoint" would work, but I only get "Bad gateway": "Operation is not allowed because it exceeds the list view threshold enabled by the system administrator"

 

http-request-errorpng.png

 

Is there other (better) ways to filter Document sets based on metadata in a column?

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    Hello @PowerTegga ,

     

    So you want to get Document Sets from Library B by applying filter based on GUID column? 

  • PowerTegga Profile Picture
    77 on at

    If there is a Document set in B with a GUID same as the name of the folder (GUID) in A, then I want to move all the files from the folder in A to the Document set in B 🙂

     

    I now how to do everything except the check if the Document set with a special GUID exist. I've tried to hard code with a GUID wich I know exist in a column for Document set, but I still get the "Bad gateway" message. 

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    Hello @PowerTegga ,

     

    You need to configure the Send HTTP action as shown in below screenshot. Also please note what is the internal name of your GUID column, please go to Library settings, click on GUID column, and then see URL in browser and get the value after "Field=" form the URL, that should give you internal name of the field, and use that internal name in the URL filter.

    Screenshot 2020-12-16 172906.png

  • PowerTegga Profile Picture
    77 on at

    Thanks for your reply.

     

    I did almost the same, but changed to the headers you have there:

    PowerTegga_1-1608120824647.png

    I still get the "Bad gateway" message.

    Anyhow, I think I've found another method to do what I want the flow to do (by using another SharePoint list in the system). It creates a few more steps, but I think it will work.

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    oh i overlooked your error, you are getting threshold error, so it looks like your list has over 5000 items, is the GUID column indexed?

  • PowerTegga Profile Picture
    77 on at

    That was the problem. I indexed the column and now its working.

     

    Thanks a lot, @annajhaveri 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard