How to get SharePoint hyperlink column type with MsGraph?

Pragati Agrawal 6 Reputation points
2021-10-20T04:41:28.383+00:00

I had created a column in sharepoint site generic list of type Hyperlink and when i tried to get data of that column using graph api i didn't get and type set for that column.

I want the type of the hyperlink column when I fire the query in Graph Explorer for getting the column details.

I tried with different Graph api versions

Reqested URL
https://graph.microsoft.com/v1.0/sites/{Site-id}/lists/{list-id}/columns/{column-id}

Graph api Response

{
"columnGroup": "Custom Columns",
"description": "",
"displayName": "link",
"enforceUniqueValues": false,
"hidden": false,
"id": "ca328e6e-142a-4704-806b-777b0398aed9",
"indexed": false,
"name": "link",
"readOnly": false,
"required": false
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,686 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-10-20T08:37:50.007+00:00

    Hi @Pragati Agrawal ,

    Per my test, I could reproduce your issue on my end. Looks like it's not avaliable to show column type in the reponnse for hyperlink column currently. You could submit the request here: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform.

    As a workaround, I would suggest using SharePoint rest api instead: https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.