Skip to main content

Notifications

Power Automate - Building Flows
Answered

Sharepoint HTTP request

(0) ShareShare
ReportReport
Posted on by 17

I would like to create an HTTP request action to get the same results as Get Files (properties only). However, I can't get the same results when using the HTTP request.
This is the JSON output from Get files (properties only):
 
 
 

This is the JSON output of the SharePoint HTTP request:
 
Is it possible to get the same results using the request?  The reason I want to do this is because it's immensely faster to use the request method.
 
  • renanfm Profile Picture
    renanfm 17 on at
    Sharepoint HTTP request
    It Worked! Thanks @Expiscornovus
  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 31,008 on at
    Sharepoint HTTP request
     
    What is the name of your document library? It looks like I used the wrong name in my example.
     
    Can you find the right name in the interface and use that instead?
     



    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • renanfm Profile Picture
    renanfm 17 on at
    Sharepoint HTTP request
     
    I got this error message. In translation, it says that the list doesn't exist. That would be because I'm trying to fetch information from a library, right?
     
  • Expiscornovus Profile Picture
    Expiscornovus 31,008 on at
    Sharepoint HTTP request
    Hi @renanfm​​​​​​​
     
    Can you try the below instead? (I used the ID of your folder in the items method)
     
    _api/web/lists/getbytitle('Documentos Compartilhados')/items(210102)?$select=ID,Author/EMail,Editor/EMail&$expand=Author,Editor
     
  • renanfm Profile Picture
    renanfm 17 on at
    Sharepoint HTTP request
     
    Thanks for reply, I've tried to adapt this query, but it wasn't work. 
     
    I have to change the Uri, because I only want to get by specific folder and when I used the expression "getbytitle" it isn't work.
     
     
     
     
    Even with the change, the output return only ID. And I really need those fields that I post above, like: Filename, link, editor, author
     
    The Output:
  • Expiscornovus Profile Picture
    Expiscornovus 31,008 on at
    Sharepoint HTTP request
     
    With the HTTP request you can use query parameters to retrieve specific details. With a $select query parameter you can specify which fields you want to retrieve. Which fields do you need? Some would require and $expand query parameter as well (like the Editor and Author).
     
    Below is an example
    _api/web/lists/getbytitle('Documents')/items?$select=ID,Author/EMail,Editor/EMail&$expand=Author,Editor
     
     

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

End of Year Newsletter…

End of Year Community Newsletter…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #11 New Opportunities…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,609

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,420

Leaderboard