Hello everyone,
We have experienced some strange behavior with Microsoft Graph. Let me explain to you.
We are using Graph to make calls to SharePoint. Especially, we are making PATCH calls to rename Document Library. This works pretty well, we are doing this on several SharePoint tenants.
We are just experiencing one problem with one Tenant in particular.
On this Tenant, although the PATCH call return a 200 status code, the document library is never patched (never renamed).
However, we can rename the document library manually. (See the linked image)
But it doesn't seems to work perfectly neither: the name is not updated in the list of the documents library. (See second image linked)
Here are the calls and some code we are using :
PATCH call https://graph.microsoft.com/v1.0/sites/{TenantId}/Lists/NPO - Entity 2 (npo_entity_2)
with Json object
{ 'displayName' : 'new name' }
Here are a sample of the code we are using
var query = _graphClient.Sites[{TenantId}].Lists['NPO - Entity 2 (npo_entity_2)'].RequestUrl;
//return the same Url than above
var request = await query .WithOAuthBearerToken(await GetToken()) .PatchJsonAsync(new { displayName = 'New name' });
Voilà, you know everything. If someone has already experienced that type of problem that would be very helpful for us ! :)
Thank you in advance,
Nicolas.