Hi,
I finally achieved to create a custom connector doing a search query using graph api "search/query"
Button from power apps -> launch flow to make search query -> response to Power Apps
And now I have 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"]}
I also noticed that graph explorer give me Title field and Graph using flow doesn't...
Did someone already successfully used "sourceid" with a "search/query" graph request ?
Thanks in advance for your answers