Cannot see columnValidation property when enumerating columns in a SharePoint list

Data Wizard 26 Reputation points
2021-11-27T21:39:32.85+00:00

According to the information here columndefinition the list of properties returned from a get of columns in a SharePoint list include a property named "validation" of type columnValidation. However when I tried this in Graph Explorer I get all the other properties returned, but not "validation" (and I am 100% sure that some columns do have a validation).

The query I am using is in the format https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/columns

Is there something I need to include in the request to get this property returned?

Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
264 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,034 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.
1,680 questions
{count} votes

Accepted answer
  1. Carl Zhao_MSFT 18,216 Reputation points Microsoft Employee
    2021-11-30T09:37:56.89+00:00

    Hi @Data Wizard

    After many tests, I can come to the conclusion that returning the validation attribute is not supported. Before this, I have set columnValidation for column in SharePoint. I suggest you submit a user voice to add a support request for the columnValidation attribute, and I will vote for 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 additional answers

Sort by: Most helpful