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 / Pars or Filter HTTP re...
Power Automate
Answered

Pars or Filter HTTP request

(0) ShareShare
ReportReport
Posted on by 505

Using this action I get a lot of information that includes all the URL's that my id has access too, but all I want is the URL's.  How can I filter out all the other information?

 

HTTPrequest.png

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @send2mark 

     

    Could you provide a sample of what is being outputted, and the value you want. Thanks

  • send2mark Profile Picture
    505 on at

    Basically, I am trying to get all the site collections and properties in the way of a list. I am not even getting all the site collections returned, so I am not sure if this is going to work.

     

    api-results.png

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @send2mark 

     

    You most likely will need to be an owner of all Sites to access everything.

  • send2mark Profile Picture
    505 on at

    I am the site collection admin on all of them.

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @send2mark 

     

    Unfortunately, it seems like these types of graph calls will not work in the SharePoint HTTP Request action.

     

    I was able to use graph and list every site. Using this call:

    https://graph.microsoft.com/v1.0/sites?search=*

    This call returned:

    Jcook_0-1601058827928.png

     

     Please try this call in graph explorer, and see if its what you are looking for:

    https://developer.microsoft.com/en-us/graph/graph-explorer

     

     

    If it is, you will have to use HTTP action in Flow. Which requires you to have some type of authentication. Azure Application registration can be used here:

    https://social.technet.microsoft.com/wiki/contents/articles/53583.power-automate-flow-calling-ms-graph-api.aspx

    Its a long and tedious process to have to setup this authentication.

     

    If the above call is not what you are looking for, you might need to provide more details. Thanks 

  • send2mark Profile Picture
    505 on at

    If using Azure Application registration is my only option in Power Automate then I would like to explore that. The results looked good in Graph. Can you show me what the Flow would look like?

  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @send2mark 

     

    Here is a Sample POC:

     

    Following this guide:

    https://social.technet.microsoft.com/wiki/contents/articles/53583.power-automate-flow-calling-ms-graph-api.aspx

    to setup the Azure App registration, The only difference I made was to the permissions. When selecting App permissions in steps 13.

    I am using Site permissions:

    Jcook_0-1601062896796.png

     

    Now, creating the Flow,

    All we need to use now is HTTP action, and fill in the information just like the guide. Here is what mine looks like based on the Graph Call for Sites:

    URI: https://graph.microsoft.com/v1.0/sites?search=*

    Authority: https://login.microsoft.com

    Audience: https://graph.microsoft.com

    **All other fields should be populated by the values from your App registration**

    (You can use variables or Integrate Azure Keyvault for your secret)

    In my demo I am passing values directly into the HTTP action, this is fine for tenantID and clientID. For better security on passing your Secret, check out my blog post on integrating and grabbing Azure Secrets to pass into actions securely

    https://flowaltdelete.ca/2020/06/08/grab-azure-key-vault-secrets-securely/

     

    Jcook_1-1601063007874.png

    Run the Flow and make sure the Request comes back successful with data. Copy the outputs from the HTTP action.

    Now we get the details we need in JSON. So to grab details more easily we add a Parse JSON action, click on Generate from sample button, and paste in the Outputs from the HTTP action

     

    ParseJSON.png

     

     

     

     

     

     

     

     

     

     

    Now we can select dynamic content from the results:

    Dynamic Content.png

     

  • send2mark Profile Picture
    505 on at

    Thanks for going the extra mile with me here.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard