Forum Discussion
jbeauvois
Mar 09, 2023Copper Contributor
modify adress site sharepoint / submit form to list (helpdesk templat
Good morning, On SharePoint I used the HELPDESK model. At one point I had to modify the site page at the name level and now it sends me to the wrong URL when I send a form (send a request). The re...
jbeauvois
Mar 09, 2023Copper Contributor
ganeshsanap thanks for your answer. but i would like to change the url "before" allitems (in red) and modify the target site when i click on submit
https://xxx.sharepoint.com/sites/QRQCSI/Lists/Liste%20des%20incidents%20%20Demandes/AllItems.aspx/AllItems.aspx
ganeshsanap
Mar 09, 2023MVP
jbeauvois Try using PnP PowerShell like:
$SiteURL = "https://contoso.sharepoint.com/sites/siteName/"
$ListName = "OldListName"
$NewListURL = "NewListName"
#Connect to site
Connect-PnPOnline -Url $SiteURL -Interactive
#Get the list instance
$List= Get-PnPList -Identity $ListName -Includes RootFolder
#change SP list url
$List.Rootfolder.MoveTo($NewListURL)
Invoke-PnPQuery
If $NewListURL = "NewListName" does not work, try using $NewListURL = "Lists/NewListName"
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs