parserecords(ep) =
foreach x in [0]
let recordid = extractJson[{
kind: String, selfLink: String, items:
List<{
subList:List
List<{
kind: String, selfLink: String, name: String
}>
}>
}]
foreach hs in network.externalSources.httpSources
foreach ep in hs.endpoints
where ep.name == "endpointname" && ep.statusCode == 200
let recordItems = (min(parserecords(ep))).items
foreach i in recordItems
select {
SrcName: hs.name,
subListName: i.subList.name
}
///////////////////////// Oops! The query doesn't work ///////////////
Address the following issues:
- Line xx, character xx: Can't access field 'name' from 'i.subList', because that is a List<{kind: String, selfLink: String, name:String}>.




