Forum Discussion

Stef_Heyenrath's avatar
Stef_Heyenrath
Copper Contributor
Mar 11, 2021

How to get the local (translated) column name from a SharePoint Site/List using the Microsoft Graph

When calling the Graph like this:

https://graph.microsoft.com/beta/sites/{MY_SITE}/lists/{MY_LIST)?$expand=columns,items($expand=fields)

 

I get the columns, however the displayName from a column is always English, but the site configured as Dutch.

 

SharePoint shows Dutch translation for "Name" in the UI:

 

But the OData result returned still contains only the English name:

{
            "columnGroup""Custom Columns",
            "description""",
            "displayName": "Name",
            "enforceUniqueValues"false,
            "hidden"false,
            "id""8553196d-ec8d-4564-9861-3dbe931050c8",
            "indexed"false,
            "name""FileLeafRef",
            "readOnly"false,
            "required"true
}

 

How to call the MS Graph API so that the Dutch displayNames are returned?

(I tried adding an header "Accept-Language" : "nl" but this does not help.)

Kind regards,

Stef

 

 

 

No RepliesBe the first to reply

Resources