Forum Discussion
YoussefC1135
Jun 29, 2019Copper Contributor
Add files to sharepoint sublist
I upload documents from the local drive to sharepoint site. My issue is : How to upload to sublist sharepoint $SiteURL = "domain/sites/testing/" $libraryName="Documents/X" $SPOnlineUserNa...
SteveKnutson
Jul 10, 2019MVP
YoussefC1135 I think my blog might help with this
Specifically you need to reference the folder in the document library
$spFile = $spList.RootFolder.SubFolders[$Target].SubFolders[“Imported Files”].Files.Add($doc.Filename,$Uploadedfile)
Hopefully this helps