Can this plugin work on a plain web app or does it require SP.js?
opened this issue · comments
It appears this plugin is only for use on a page served up by SharePoint or a page with SharePoint JS libraries already available. In other words, is this plugin dependent upon the SP JavaScripts? I don't see that mentioned anywhere on the home page. Thanks!
@Katydude - I wrote most of this library before SP.js even existed. It works with the old, deprecated SOAP (asmx) Web Services.
If you are on a version of SharePoint greater than 2010, you should really be using REST rather than SOAP. What version are you in and what are you trying to accomplish?
The real question here is what version of SharePoint you're working in and what you are trying to accomplish. The answers will vary accordingly.
I would suggest looking at PnPjs rather than trying to dig into the bowels of SP.js. It's sort of like the SPServices for REST - and many other things.
It has server side dependencies in that it helps you use the REST endpoints, but it does work with 2016.
I'm not sure what you mean about needing "a very pristine development environment to get it all to work". What blockers are you seeing?
Yeah, you have to do sp.setup. That's a cost of entry.
You can also use the SharePoint Framework (SPFx) on 2016. This would make your solution future-proof in that it's the development platform going forward.
Right on the Getting Started page. :)
SPFx has been out for at least two years now. We build complex solutions with it all the time. You should spend some time out in the community to keep up with what's been going on!