I have a SharePoint list with those 2 site columns:-
1) LinkToFile
2) RequestedDate
now using Power-shell i hide those 2 columns from the New & Edit list forms, as follow:-
#Config Variables
$SiteURL = "https://******.sharepoint.com/sites/c1"
$ListName = "Custom"
$FieldName = "LinkToFile"
$FieldName2 = "LastRequested"
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive
#Get the Field
$Field = Get-PnPField -List $ListName | Where {$_.Title -eq $FieldName}
$Field2 = Get-PnPField -List $ListName | Where {$_.Title -eq $FieldName2}
#Hide the field from New Form
$Field.SetShowInNewForm($False)
$Field.SetShowInEditForm($False)
$Field2.SetShowInNewForm($False)
$Field2.SetShowInEditForm($False)
Invoke-PnPQuery
this will hide those 2 fields from the list forms correctly.. but still i can access those 2 fields inside Power automate and set those fields, as follow:-
now this is what i need, to set those values by the system and not by the end users.. but not sure if this is a bug or it is the intended behavior that will not change in the future?
Thanks


Report
All responses (
Answers (