PNP SharePoint Modern Lists DefaultEditFormUrl

%3CLINGO-SUB%20id%3D%22lingo-sub-1884438%22%20slang%3D%22en-US%22%3EPNP%20SharePoint%20Modern%20Lists%20DefaultEditFormUrl%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1884438%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20with%20PNP%20PowerShell%20to%20change%20a%20modern%20lists%20(SharePoint%20Online)%20default%26nbsp%3BDefaultEditFormUrl.%26nbsp%3B%20I%20know%20we%20can%20get%20the%20current%20values%2C%20but%20looking%20for%20a%20way%20to%20set%20it%20to%20my%20own%20custom%20page.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnect-PnPOnline%20-Url%20%22%3CA%20href%3D%22https%3A%2F%2Ftenanr.sharepoint.com%2Fsites%2Fx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ftenanr.sharepoint.com%2Fsites%2Fx%3C%2FA%3E%22%3CBR%20%2F%3E%24list%20%3D%20Get-PnPList%20-Identity%20%22listane%22%20-Includes%20DefaultDisplayFormUrl%2C%20DefaultEditFormUrl%2C%20DefaultNewFormUrl%3CBR%20%2F%3E%24list.DefaultDisplayFormUrl%3CBR%20%2F%3E%24list.DefaultEditFormUrl%3CBR%20%2F%3E%24list.DefaultNewFormUrl%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1884438%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Emodern%20list%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi,

 

Is there a way with PNP PowerShell to change a modern lists (SharePoint Online) default DefaultEditFormUrl.  I know we can get the current values, but looking for a way to set it to my own custom page.  

 

Connect-PnPOnline -Url "https://tenanr.sharepoint.com/sites/x"
$list = Get-PnPList -Identity "listane" -Includes DefaultDisplayFormUrl, DefaultEditFormUrl, DefaultNewFormUrl
$list.DefaultDisplayFormUrl
$list.DefaultEditFormUrl
$list.DefaultNewFormUrl

 

Thanks :)

0 Replies