Hi @BhavikaVala :
I did the same test and encountered the problem you mentioned.
Firstly, I guess the reason is that PowerApps seems can not recognize the message body of BingSearch.GetNews ().
So you could not directly use PowerApps to get the news list.
message body(“fieldname”)
[
{
"name": "XXXX",
"url": "https://www.reuters.com/article/XXXXXXXX",
"image": {
"thumbnail": {
"contentUrl": "https://www.bing.com/th?id=ON.DB0E833XXXXXX",
"width": 700,
"height": 490
}
},
……]
PowerApps required format(‘fieldname’)
[
{
‘name’: "XXXX",
‘url’: "https://www.reuters.com/article/XXXXXXXX",
‘image’: {
‘thumbnail’: {
‘contentUrl’: "https://www.bing.com/th?id=ON.DB0E833XXXXXX",
‘width’: 700,
‘height’: 490
}
},
……]
Secondly, the good news is that PowerApps can recognize the data after Flow analysis.
Here is my solution:
1\Create a new flow('PowerApp->Listnewsbyquery')
Action-Power Automate-Create a new flow
Response Body JSON Schema:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"image": {
"type": "object",
"properties": {
"thumbnail": {
"type": "object",
"properties": {
"contentUrl": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
}
}
},
"description": {
"type": "string"
},
"provider": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_type": {
"type": "string"
},
"name": {
"type": "string"
},
"image": {
"type": "object",
"properties": {
"thumbnail": {
"type": "object",
"properties": {
"contentUrl": {
"type": "string"
}
}
}
}
}
},
"required": [
"_type",
"name",
"image"
]
}
},
"datePublished": {
"type": "string"
},
"category": {
"type": "string"
},
"about": {
"type": "array",
"items": {
"type": "object",
"properties": {
"readLink": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"readLink",
"name"
]
}
}
},
"required": [
"name",
"url",
"description",
"provider",
"datePublished"
]
}
}
2\Add a button set it’s OnSelect Property to:
ClearCollect(VarVar,'PowerApp->Listnewsbyquery'.Run("Corona")) /*VarVar is my custom collection*/
Best Regards,
Bof