Forum Discussion
SiteProperties.NewUrl not working
Is this something new? So far this has not been supported...adding VesaJuvonen to comment on this
Well, it was added to CSOM a year ago, so I just assumed it was supported by now.
https://dev.office.com/blogs/new-sharepoint-csom-version-released-for-Office-365-march-2016
The property also exists in the SharePoint Online documentation.
- DeletedMay 18, 2017
how do you build the context with creds etc?
a example of mine
SharePointService sharePointService = new SharePointService(); AuthenticationManager authenticationManager = new AuthenticationManager(); using ( ClientContext adminContext = authenticationManager.GetSharePointOnlineAuthenticatedContextTenant(Info.TenantAdminUri.AbsoluteUri, Info.UserName, Info.UserPassWord)) { adminContext.RequestTimeout = Timeout.Infinite; }
hope it helps
- Michael SchauMay 19, 2017Copper Contributor
I've tried both AppOnly context with full SiteCollection permissions and SharePointOnlineContext.
Neither works.
I can however create/delete sitecollections and change other properties, but NewUrl doesn't work. So I believe my context is ok.
Deleted you're saying that it works for you? My ServerLibraryVersion is 16.0.6511.1201.
- DeletedMay 19, 2017
Hi I am just checking your code.
What are you trying to accomplish?
Since i see you get the url then want to update the url??
That will not work.