Share via

HyperlinkOrPicture is missing from ColumnDefinition

Ivan Peters 26 Reputation points
2022-05-30T10:30:29.757+00:00

When retrieving column definitions with a query like this:

https://graph.microsoft.com/v1.0/sites/cf79eb97-b8ca-4682-9dd9-ba957c01367b/lists/bb608fce-6cff-4858-b06b-604b2905a628/columns/700351ba-ec4d-4ad4-be02-1888fa3e07ee

there is no hyperlinkOrPicture property for hyperlink columns. For example, the above query (for a hyperlink column) returns:

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('cf79eb97-b8ca-4682-9dd9-ba957c01367b')/lists('bb608fce-6cff-4858-b06b-604b2905a628')/columns/$entity",
"columnGroup": "Custom Columns",
"description": "",
"displayName": "CopyTo",
"enforceUniqueValues": false,
"hidden": false,
"id": "700351ba-ec4d-4ad4-be02-1888fa3e07ee",
"indexed": false,
"name": "CopyTo",
"readOnly": false,
"required": false
}

Same result using v1.0 or beta API.

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,261 Reputation points
    2022-06-01T01:54:58.483+00:00

    Hi @Ivan Peters ,

    According to my research , the column will only have its basic properties. Sites and list columns response won't contain hyperlinkOrPicture.

    You can see the Note in the documentation.

    Note: These properties correspond to the SharePoint SPFieldType enumeration. Note that the most common field types are represented in the previous table. However, this API is still missing some. In those cases, none of the column type facets will be populated, and the column will only have its basic properties. Sites and list columns response won't contain isDeletable, propagateChanges, isReorderable, isSealed, validation, hyperlinkOrPicture, term, sourceContentType, thumbnail, type, contentApprovalStatus, and sourceColumn properties.


    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.


    Was this answer helpful?


  2. ShivaniRai-MSFT-7217 2,751 Reputation points
    2022-05-30T12:59:39.517+00:00

    Hi @Ivan Peters ,

    According to this documentation, Column response will only have its basic properties. Sites and list columns response won't contain isDeletable, propagateChanges, isReorderable, isSealed, validation, hyperlinkOrPicture, term, sourceContentType, thumbnail, type, contentApprovalStatus, and sourceColumn properties.

    Hope this helps.
    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.