Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Do we have any Apis to get the Last Opened Documents
That is displayed in the the Office 365 Home Page.
Intention is to get the list of the last opened Documents using SpFx webpart.
Yes you can use the graph api. Check out the api with the graph explorer.
The api function you need is: https://graph.microsoft.com/v1.0/me/drive/recent
For "marketing reasons" this api command is in the onedrive section, but it returns your recent onedrive and sharepoint documents.
Required, but never shown