Share via

MS Graph API : Search/query

Anonymous
2022-03-17T17:45:06+00:00

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

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-03-18T11:00:42+00:00

    Hi Clark,

    Thank you for your time.

    I searched the proper category but didn't found one related to Power apps / automate and ended up in "Sharepoint"

    I'll go in the Q&A forum you mentioned.

    Regards,

    OP

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-03-17T19:00:05+00:00

    Hi O.P Gatineau,

    I go through the post carefully, based on the description, it seems that you get issue when creating search query that used in Power Apps. However, as the category is on SharePoint Online Out-of-box usage, for dedicated help on code related questions, I would suggest you post in SharePoint developer platform in Microsoft Q&A forum at office-sharepoint-online - Microsoft Q&A, members and engineers there are more professional on such questions and you may get better experience there. Thanks for your patience and understanding!

    Best Regards,

    Clark

    Was this answer helpful?

    0 comments No comments