SharePoint Online list column default Value Setting

Navas Shereef 141 Reputation points
2022-01-10T14:08:58.64+00:00

Hi all,

I am trying to set column default value for folder(Note: not using column customization) by using column default value setting in document library setting. I am trying to set multi-select value as default value for a folder. Since I can find only default value as text, I am unable to set multi-value. Anyone have solution for this?
163623-screenshot-1.jpg

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,738 questions
{count} votes

Accepted answer
  1. Allen Xu_MSFT 13,831 Reputation points
    2022-01-11T06:30:53.607+00:00

    Hi @Navas Shereef ,

    Use this PnP PowerShell command to set it:

    Set-PnPDefaultColumnValues -List <ListPipeBind> -Field <FieldPipeBind> -value <String[]> -folder <String>  
    

    Example1:

    Set-PnPDefaultColumnValues -List Documents -Field testchoice -value "A","#B","#C" -folder "testFolder"  
    

    163688-image.png
    Example2:

    Set-PnPDefaultColumnValues -List Documents -Field testchoice -value "A","#B" -folder "testFolder"  
    

    ----------

    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.

1 additional answer

Sort by: Most helpful
  1. Harshal Gite 1 Reputation point
    2022-01-10T14:19:24.213+00:00

    You can just enter the text of the choice you want to set as default.
    Not: Only a single choice can be set as default even if the column is of multi-value type.

    163612-image.png


Your answer

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