GraphAPI
2 TopicsGraphAPI does not return headers collapsed by default
I'm using GraphAPI to access site pages published in Sharepoint sites. Normally, the innerHtml field contains the html I am looking for. However, there are some pages that have their headers collapsed by default. In this case, only the content of the sections are returned, but the headers themselves are not returned as part of the innerHtml or otherwise. Is this an issue with GraphAPI, or is there another way to return the headers? The call is (using the Pages API, which I am aware is in beta): GET https://graph.microsoft.com/beta/sites/<site_id>/pages/<page_id>/microsoft.graph.sitePage?expand=webParts575Views0likes1CommentNeed help on Sharepoint query search building
Hi, I am trying to integration Servicenow with Sharepoint to find the files available in Sharepoint Sites which i acheived using "https://graph.microsoft.com/v1.0/drives/drive-id/root/search(q='sharepoint')" & it is working perfectly fine but it is working only for specific drive/site. Now the requirement is when user search with a query word it should search in all the sites available in our Sharepoint and give the response after lots of googling i found an article that i thought suits to me : https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overviewhttps://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview When i try with the given ex: GET http://mydev.sharepoint.com/_api/search/query?querytext='sharepoint' in Graph API explorer it is not even the running and i am not able to see any response. Later the tried the same by giving the End point URI in Servicenow and i am getting Invalid User & Passworkd & Response: 401. Note: My Servicenow instance is already configured with oAuth and it is working for specific Drive search but when i am trying with Sharepoint rest api search i am getting authentication issue do i need to proceed with other Authentication method ?893Views0likes0Comments