Hi,
I finally achieved to create a custom connector doing a search query (in SPO) using graph api "search/query"
Button from power apps -> launch flow to make search query -> response to Power Apps -> search results in Power Apps gallery
I created a Search result scope, and i'm using the "sourceid" parameter in the query but the scope is not applied and i have results from all sharepoint sites...
In graph explorer :
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "Plancha"
},
"sourceid": [
"GUID of the search result scope"
],
"fields": [
"title",
"ListItemId"
]
}
]
}
In my custom connector :
{
"entityTypes": [
"listItem"
],
"query/queryString": @{triggerBody()['SearchTerms_Value']},
"query/sourceid": @{variables('ScopeID')},
"query/fields": [
"title",
"ListItemId"
]
}
Did someone already successfully used "sourceid" parameter in a "search/query" graph request ?
I also noticed that the same query in graph explorer give me the "Title" field in the answer but Graph using flow doesn't...
Thanks in advance
OP