Forum Discussion
SharePoint framework Vs SharePoint hosted add-in, when building CRUD operations
AndreKrijnen wrote:Hi,
When it comes Modern Web Parts and SharePoint Framework it all depends on your requirements and what is needed. If it is basic stuff for CRUD operations maybe it is.
From my point of view the Modern experience is not ready yet, and it still requires many adjustments to be able to deliver all that we need.
And no, it is not possible to force the Modern Experience with Add-Ins. At least I didn't have seen any solutions to this, or any possibilities.
Currently I am still in need for options to deliver experiences to Modern team sites, but there isn't any.
Regards,
André
Thanks for the reply. so you are saying that currently we can not have advanced CRUD operations inside modern experience (compared to SP Add-ins ) ? even when developing modern web parts using SP framework ?
- john johnJan 04, 2019Iron Contributor
jcgonzalezmartin wrote:
I totally disagree here with AndreKrijnen....modern experiences in SPO are totally ready and the recommendation when developing custom functionality for SPO is to go to SPFx or to PowerApps depending on your requirementsI also agree with your point that the SP framework is ready to be used. but to keep my question specific, now in SP online classic experience, when we wanted to build advance CRUD operations, we use to do so using sharepoint hosted add-in, as it is very suitable for this. but SP-hosted add-ins option will not work with modern experience. so what is the official replacement for sharepoint hosted add-in which use SP rest api to implement advance CRUD operation? powerapps OR modern web part built using SP framework? let ignore the fact that powerapps currently can not be used by external users, to have more accurate comparison, as i think in the near future powerapps are supposed to work with external users.
Regards
- Rishi GuptaJun 26, 2019Brass Contributor
john john Do you get an answer for your question? Should we go with App model or SP framework can help with CRUD operations given the modern experience it provides?
- Beau CameronJun 26, 2019MVP
Rishi Gupta john john Whether you are using modern or classic experience in SPO, the recommendation would be to use SharePoint Framework instead of SharePoint-Hosted Add-Ins. There are many reasons SPFx is preferred over Add-Ins - Performance, ALM/CI/CD support, Web Parts aren't hosted in IFrames and more. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/enterprise-guidance
If you like SharePoint hosted add-ins because you like control of a larger page, or you are building a SPA... You can check out single part app pages https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/single-part-app-pages
You can do all the crud operations you want using SharePoint Framework.
Here is an example of doing CRUD operations with SPFx. If you take a look at this repository, you'll see a lot of other community built solutions.
https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/sharepoint-crud