cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benjammin502
Regular Visitor

Access "results" array from Send an HTTP Request to Sharepoint

Hi All,

 

Apologies if this has been posted before. I've done a search and haven't found the relevant information.

 

I need to access O365 Video VewCounts. This is a separate call to grab the ViewCount, as the O365 Video Connectors do not contain the ViewCounts. So a separate call is needed. I'm able to successfully execute the call with the Send an HTTP Request to Sharepoint, however, I am unable to figure out how to get to the "results" array of objects. I can get to the "d": object, but no further.

 

Here is what the connector/call returns (I've deleted some of the metadata as it contains sensitive information). I need to access the 6 properties located directly after the __metadata object. Any help would be greatly appreciated. Thanks.

 

{
  "d": {
    "results": [
      {
        "__metadata": {
          "id""",
          "uri""",
          "type""SP.Publishing.VideoItem"
        },
        "CreatedDate""2018-03-02T17:31:28Z",
        "Description""This video shows a new employee how to complete new hire documents in Docusign. [Audience: U.S.]",
        "Title""New Hire Electronic Documents [Canada, U.S.]",
        "ID""127a962e-25a9-484b-b8dd-c9fad1caeace",
        "VideoDurationInSeconds"107,
        "ViewCount"287
      }
    ]
  }
}

1 ACCEPTED SOLUTION

Accepted Solutions
prabir
Power Automate
Power Automate

You can use the "parse json" aciton to get strongly typed responses. Click "Use sample payload to generate schema" to auto genereate the schema based on the json. Should look something like this.

 

Capture.PNG

View solution in original post

2 REPLIES 2
prabir
Power Automate
Power Automate

You can use the "parse json" aciton to get strongly typed responses. Click "Use sample payload to generate schema" to auto genereate the schema based on the json. Should look something like this.

 

Capture.PNG

Amazing. Thank you so much. I'm new to Flow and did not realize I could paste in my JSON response to generate the necessary schema. This worked perfectly for my needs. Out of curiosity, is there a way you could also access the properties via bracket or dot notation? I figured this might be efficient if I only need to access 1 or 2 properties and save on adding more connectors.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,439)