question

PragatiAgrawal-5883 avatar image
1 Vote"
PragatiAgrawal-5883 asked saldana-msft edited

How to get SharePoint hyperlink column type with MsGraph?

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
}

sharepoint-devmicrosoft-graph-sites-lists
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
1 Vote"
MichaelHan-MSFT answered PragatiAgrawal-5883 commented

Hi @PragatiAgrawal-5883,

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://docs.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.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PragatiAgrawal-5883,

Do you have further questions about this issue? I am willing to hear from you:)


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.


0 Votes 0 ·

can I get hyperlink column type through graph because in our application we are using graph api only, same issue occur with column type location also

0 Votes 0 ·