3

How do I set the ListExperienceOptions of a list to ClassicExperience using the PnP-Powershell? I have tried this

# Create the list to hold work Types 
New-PNPList -Title "Work Types" -Url "WorkTypes" -Template GenericList -EnableVersioning -OnQuickLaunch -OutVariable $WorkTypesList 
$WorkTypesList.ListExperienceOptions = 2

SWorkTypesList.Update()

$WorkTypesListID = $WorkTypesList.Id

but it just trashes my library. Do I need to import the CSOM libraries?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.