Accessing Acronym Answers via Graph API?

Benjamin Dains 21 Reputation points
2021-08-10T21:38:43.873+00:00

Edit: With some more research and looking at network calls, it appears that this search is going through: https://substrate.office.com/search/api/v2/query?

So maybe this question changes to how to use whatever this api is (that appears to have no documentation) since the data isn't coming from sharepoint?

--
I'm trying to build a webpart that will let a user type in an acronym, and then have the webpart return the matching results. It would be nice to be able to type in other values for acronyms as well which should return a list of items that match that acronyms description, etc.

How are we supposed to query the list of acronyms & answers that are managed via the Microsoft 365 Admin Center?

I noticed that the Graph API lets you query for lists, listitems, sites, externals, etc. is this the way to get to that data? I wondered if it would be considered external information or if the acronyms have an entity type that I can use to search for?

Any help would be appreciated so I can build this web part for our upcoming intranet move.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,695 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,715 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,680 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-08-13T02:46:36.297+00:00

    Hi @Benjamin Dains

    Per my research, currently there is no documentation of the search api to query acronyms & answers. I don't think it's possible to deploy in your web part.

    According to the Frequently asked questions in the article:

    To get acronyms answers, users must enter specific query patterns in a Bing, SharePoint, or Office 365 Search box.

    As a workaround, you could create a SharePoint list to copy the acronyms & answers. Then query the list in your web part.


1 additional answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-08-11T02:25:20.78+00:00

    Hi @Benjamin Dains

    Where did you store the list of acronyms & answers? In a SharePoint list?

    If so, you could use SharePoint rest api to query for lists and list items in your web part, below articles would be helpful to you:

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.