I'm trying to share a link with users that will automatically sync a specified sharepoint library.
I've used this microsoft article to get things going and I've got most of the way there.
I grabbed most of the bits it needs from _spPageContextInfo on the page source of the library in question.
The link works in that it redirects to onedrive and automatically syncs a library, however the library it syncs isnt the one I'm after. Infact, its not one I'm aware of.
Rather than being "MyCompanyName - My Library Name" it syncs a random library called "MyCompanyName Documents" which is almost empty, aside from a couple of 'how to use this library' files.
I've been through the library settings and triple checked the SiteID, ListID and WebID. I'm pretty certain they are correct. I'm not 100% on the WebURL, as there is no entry for that exact term in the _spPageContextInfo, so I've tried using a variety of URL's, but dont seem to be getting any closer.
I found another article which explains how it works and also has links to a aspx file you can add to your library which will generate the link for you, but that didnt work for me - the variables were not populated in the link that was generated in the file - seemed pretty static to me. :(
Can anyone help me out with this?
Many thanks in advance.