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
}
]
}
}
Solved! Go to Solution.
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.
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.
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
28 | |
27 | |
27 | |
20 | |
10 |