For what ever reason /search endpoint is not locating files of type images that have been tagged with specific Column values. Is this a known limitation with graph api?
Related
I have a folder hierarchy in OneDrive containing around 1000 files spread out under those folders. All files are .mp4 files.
When I do a search using the graph api and specify q='.mp4' it returns only 500 files (paged with 200 in each page). I have tried using $top=1000 but then I get one page only with 500 files.
Is there a limit of 500 for the search?
I had the same issue during a customers project, where I requested the users group membership using Microsoft Graph.
For me, the solution was to use the $top parameter as you already mentioned.
GET
https://graph.microsoft.com/v1.0/me/memberOf/?$top=999
I am not aware if there is any kind of limitation or difference as soon as you use the OneDrive Graph endpoint.
I work with SharePoint Online drives(document libraries) with Microsoft Graph API (/drives call). With this API I can download/upload files but cannot work with permissions.
That's not a problem - I can do it with SharePoint Online REST API (with calls _api/web/GetListByTitle('Title')/hasuniqueroleassignments).
The main problem here is matching drive from MS Graph API and a corresponding list from SharePoint REST API. For now I match by title but I have several examples, when name field in MS Graph API is equal to "OneDrive", but title in List entity is Shared Pictures.
My question is: is there any way to match more precisely entities from Graph API and SharePoint REST API?
Thank you.
The Drive Item object has a SharePointIds property that will provide the information necessary to call the SharePoint REST API.
https://learn.microsoft.com/en-us/graph/api/resources/sharepointids?view=graph-rest-1.0
Use List resource, you could get list id.
Then use id to call rest api.
/_api/web/Lists(guid'54ca94c0-364e-4201-8fe7-a4c804769009')/hasuniqueroleassignments
Since the Graph documentation indicates that the publication facet is available in v1.0, I'd like to report that it is not possible to get all checked out files in group/SharePoint sites.
https://learn.microsoft.com/en-us/graph/api/resources/publicationfacet?view=graph-rest-1.0
Use case: our customers would like to know which group files in their Office 365 tenant have been checked out (by who - would be great - for another time).
It's not possible to get this global picture with requests made with Graph API:
GET /v1.0/drives/driveID/root/children?$select=name,publication
Using delegated permissions, I'm only able to see the 'checkout'
value for files I have checked out myself. All other files checked
out by others appear as 'published'.
Using app permissions, I'm only able to see the 'checkout' value for
files checked out by apps, any apps (checkout using Graph API beta).
Here's an image of the various checkout scenarios as seen in SharePoint, and then in our Graph-based app with different authentications (values verified in Postman).
Image link
While implementing file upload using Microsoft Graph API I faced the issue that once I upload file I don't get MIME type of it. I can't send it via API as well as it's not determined automatically. I use resumable upload API:
https://dev.onedrive.com/items/upload_large_files.htm
I was thinking about determining it from the name(extension part) on my side, when I get the name of the file, but I hope there is a better way to do this with OneDrive Microsoft Graph API.
We need to get Bing Maps to one of our apps in Power Apps. Whenever we enter a URL of the format on Power Apps http://dev.virtualearth.net/REST/v1/Imagery/Map/imagerySet/centerPoint/zoomLevel?mapSize=mapSize&pushpin=pushpin&mapLayer=mapLayer&format=format&mapMetadata=mapMetadata&key=BingMapsKey, we get an error stating that the Swagger file cannot be found. We tried enter the URL by going to Connections->Manage Custom Connector-> Create Custom Connector->Use an OpenAPI Url
So far we've tried connecting several Bing Map API endpoints, we've read through the docs and are unable to find a Swagger definition file on Bing's API. Do we have to create our own Swagger for this API and is there a template we can follow?
Passing in the URL you provided won't work as it returns an error. You would need to pass in a URL that returns a response. That said, the response structure of Bing Maps REST services is very complicated and you would need to use several different requests to see the full response object. There is no single way to return the complete JSON structure of the REST services as they vary depending on which end point you use. The Bing Maps REST Service JSON schema is documented here: https://msdn.microsoft.com/en-us/library/jj870778.aspx
That said, if you are using .NET, take a look at the official .NET library for the Bing Maps REST services: https://github.com/Microsoft/BingMapsRESTToolkit/