Home

SharePoint framework Vs SharePoint hosted add-in, when building CRUD operations

%3CLINGO-SUB%20id%3D%22lingo-sub-308522%22%20slang%3D%22en-US%22%3ESharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308522%22%20slang%3D%22en-US%22%3E%3CP%3EPreviously%20(Early%20stages%20of%20sharepoint%20online)%20i%20use%20to%20build%20many%20sharepoint%20hosted%20add-ins%20to%20implement%20scenarios%20such%20as%3A-%3C%2FP%3E%3CP%3E1.%20using%20node.js%20or%20pure%20javascript%2C%20i%20build%20a%20sharepoint%20hosted%20add-in.%3C%2FP%3E%3CP%3E2.%20the%20add-in%20integrates%20with%20sharepoint%20lists%20using%20REST%20api.%3C%2FP%3E%3CP%3E3.%20i%20use%20this%20approach%20to%20implement%20some%20advances%20CRUD%20operations%20that%20can%20not%20be%20achieved%20using%20sharepoint%20lists'%20views%20and%20forms.%20something%20similar%20to%20what%20is%20provided%20in%20this%20link%20%3CA%20title%3D%22REST%20CRUD%20Operations%20Using%20SharePoint%20Hosted%20App%20Office%20365%20-%20Part%20Two%22%20href%3D%22https%3A%2F%2Fwww.c-sharpcorner.com%2Farticle%2Frest-crud-operations-using-sharepoint-hosted-app-office-365-part-two%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.c-sharpcorner.com%2Farticle%2Frest-crud-operations-using-sharepoint-hosted-app-office-365-part-two%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Ebut%20one%20drawback%20i%20have%20faced%20recently%2C%20is%20that%20the%20add-in%20will%20be%20rendered%20in%20the%20classic%20experience%3C%2FSTRONG%3E%2C%20and%20i%20can%20not%20get%20the%20add-in%20to%20render%20using%20modern%20experience.%20now%20i%20read%20about%20this%20and%20many%20folks%20mentioned%20the%20SharePoint%20framework%20appraoch%2C%20which%20can%20allow%20us%20to%20build%20modern%20web%20parts.%20but%20from%20my%20experience%20i%20use%20web%20parts%20to%20display%20information%2C%20and%20i%20never%20saw%20a%20web%20part%20which%20provide%20CRUD%20operations.%20%3CSTRONG%3ESo%20if%20i%20want%20to%20provide%20CRUD%20operations%20in%20modern%20experience%2C%26nbsp%3B%20then%20is%20building%20modern%20web%20parts%20using%20SharePoint%20framework%20the%20way%20to%20go%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Esecond%20question.%20can%20we%20force%20the%20SP%20hosted%20add-in%20to%20render%20using%20modern%20experience%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%2F%2FHint.%20i%20can%20not%20use%20power%20apps%20in%20my%20case%2C%20as%20i%20have%20external%20users%20who%20need%20to%20access%20the%20CRUD%20operations%2C%20and%20currently%20power%20apps%20does%20not%20work%20for%20external%20users.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20any%20help%20on%20my%20above%202%20questions.%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-308522%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308960%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308960%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3EI%20totally%20disagree%20here%20with%20AndreKrijnen....modern%20experiences%20in%20SPO%20are%20totally%20ready%20and%20the%20recommendation%20when%20developing%20custom%20functionality%20for%20SPO%20is%20to%20go%20to%20SPFx%20or%20to%20PowerApps%20depending%20on%20your%20requirements%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20also%20agree%20with%20your%20point%20that%20the%20SP%20framework%20is%20ready%20to%20be%20used.%20but%20to%20keep%20my%20question%20specific%2C%20now%20in%20SP%20online%20classic%20experience%2C%20when%20we%20wanted%20to%20build%20advance%20CRUD%20operations%2C%20we%20use%20to%20do%20so%20using%20sharepoint%20hosted%20add-in%2C%20as%20it%20is%20very%20suitable%20for%20this.%20but%20SP-hosted%20add-ins%20option%20will%20not%20work%20with%20modern%20experience.%20%3CSTRONG%3Eso%20what%20is%20the%20official%20replacement%20for%20sharepoint%20hosted%20add-in%20which%20use%20SP%20rest%20api%20to%20implement%20advance%20CRUD%20operation%3F%20powerapps%20OR%20modern%20web%20part%20built%20using%20SP%20framework%3F%3C%2FSTRONG%3E%20let%20ignore%20the%20fact%20that%20powerapps%20currently%20can%20not%20be%20used%20by%20external%20users%2C%20to%20have%20more%20accurate%20comparison%2C%20as%20i%20think%20in%20the%20near%20future%20powerapps%20are%20supposed%20to%20work%20with%20external%20users.%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308833%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308833%22%20slang%3D%22en-US%22%3EI%20totally%20disagree%20here%20with%20AndreKrijnen....modern%20experiences%20in%20SPO%20are%20totally%20ready%20and%20the%20recommendation%20when%20developing%20custom%20functionality%20for%20SPO%20is%20to%20go%20to%20SPFx%20or%20to%20PowerApps%20depending%20on%20your%20requirements%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308729%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308729%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260195%22%20target%3D%22_blank%22%3E%40AndreKrijnen%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20it%20comes%20Modern%20Web%20Parts%20and%20SharePoint%20Framework%20it%20all%20depends%20on%20your%20requirements%20and%20what%20is%20needed.%20If%20it%20is%20basic%20stuff%20for%20CRUD%20operations%20maybe%20it%20is.%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20my%20point%20of%20view%20the%20Modern%20experience%20is%20not%20ready%20yet%2C%20and%20it%20still%20requires%20many%20adjustments%20to%20be%20able%20to%20deliver%20all%20that%20we%20need.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20no%2C%20it%20is%20not%20possible%20to%20force%20the%20Modern%20Experience%20with%20Add-Ins.%20At%20least%20I%20didn't%20have%20seen%20any%20solutions%20to%20this%2C%20or%20any%20possibilities.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20I%20am%20still%20in%20need%20for%20options%20to%20deliver%20experiences%20to%20Modern%20team%20sites%2C%20but%20there%20isn't%20any.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndr%C3%A9%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260195%22%20target%3D%22_blank%22%3E%40AndreKrijnen%3C%2FA%3E%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.%20so%20you%20are%20saying%20that%20currently%20we%20can%20not%20have%20advanced%20CRUD%20operations%20inside%20modern%20experience%20(compared%20to%20SP%20Add-ins%20)%20%3F%20even%20when%20developing%26nbsp%3B%20modern%20web%20parts%20using%20SP%20framework%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-308677%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-308677%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20it%20comes%20Modern%20Web%20Parts%20and%20SharePoint%20Framework%20it%20all%20depends%20on%20your%20requirements%20and%20what%20is%20needed.%20If%20it%20is%20basic%20stuff%20for%20CRUD%20operations%20maybe%20it%20is.%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20my%20point%20of%20view%20the%20Modern%20experience%20is%20not%20ready%20yet%2C%20and%20it%20still%20requires%20many%20adjustments%20to%20be%20able%20to%20deliver%20all%20that%20we%20need.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20no%2C%20it%20is%20not%20possible%20to%20force%20the%20Modern%20Experience%20with%20Add-Ins.%20At%20least%20I%20didn't%20have%20seen%20any%20solutions%20to%20this%2C%20or%20any%20possibilities.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20I%20am%20still%20in%20need%20for%20options%20to%20deliver%20experiences%20to%20Modern%20team%20sites%2C%20but%20there%20isn't%20any.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndr%C3%A9%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-720491%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-720491%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3BDo%20you%20get%20an%20answer%20for%20your%20question%3F%20Should%20we%20go%20with%20App%20model%20or%20SP%20framework%20can%20help%20with%20CRUD%20operations%20given%20the%20modern%20experience%20it%20provides%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-721841%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-721841%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F16525%22%20target%3D%22_blank%22%3E%40Rishi%20Gupta%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3BWhether%20you%20are%20using%20modern%20or%20classic%20experience%20in%20SPO%2C%20the%20recommendation%20would%20be%20to%20use%20SharePoint%20Framework%20instead%20of%20SharePoint-Hosted%20Add-Ins.%20There%20are%20many%20reasons%20SPFx%20is%20preferred%20over%20Add-Ins%20-%20Performance%2C%20ALM%2FCI%2FCD%20support%2C%20Web%20Parts%20aren't%20hosted%20in%20IFrames%20and%20more.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fenterprise-guidance%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fenterprise-guidance%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20like%20SharePoint%20hosted%20add-ins%20because%20you%20like%20control%20of%20a%20larger%20page%2C%20or%20you%20are%20building%20a%20SPA...%20You%20can%20check%20out%20single%20part%20app%20pages%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fsingle-part-app-pages%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fsingle-part-app-pages%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20do%20all%20the%20crud%20operations%20you%20want%20using%20SharePoint%20Framework.%3C%2FP%3E%0A%3CP%3EHere%20is%20an%20example%20of%20doing%20CRUD%20operations%20with%20SPFx.%20If%20you%20take%20a%20look%20at%20this%20repository%2C%20you'll%20see%20a%20lot%20of%20other%20community%20built%20solutions.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Fsharepoint-crud%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Fsharepoint-crud%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722280%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722280%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%26nbsp%3BThank%20you%20for%20your%20response.%20I%20am%20currently%20looking%20for%20solutions%20wrt%20SharePoint%202019.%20We%20are%20planning%20to%20host%20a%20Form%20in%20SharePoint%20which%20will%20save%20the%20data%20in%20a%20list%20and%20then%20calls%20REST%20API%20from%20another%203rd%20party%20system.%20The%20Third%20party%20system%20will%20talk%20to%20SharePoint%20hosted%20Form%20using%20REST%20calls%20and%20it%20will%20be%20two%20way%20communication.%20The%20reason%20I%20asked%20this%20is%20because%20in%20this%20case%20Provider%20Hosted%20application%20makes%20more%20sense%20to%20have%20greater%20control%20on%20the%20REST%20API%20as%20the%20calls%20will%20not%20be%20made%20in%20context%20to%20user%20but%20a%20separate%20account.%20Let%20me%20know%20if%20you%20have%20other%20thoughts.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722397%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722397%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F16525%22%20target%3D%22_blank%22%3E%40Rishi%20Gupta%3C%2FA%3E%26nbsp%3BWhat%20service%2FAPI%20is%20it%3F%20Generally%20speaking%2C%20APIs%20may%20support%20client%20credential%20flows%20and%20not%20just%20user%20flows.%20Is%20this%20available%20to%20you%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722411%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722411%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%26nbsp%3BThe%20API's%20are%20third%20party%20custom%20solution.%20User%20might%20not%20have%20access%20to%20the%203rd%20party%20solution%20but%20the%20application%20can%20be%20accessed%20using%20a%20common%20account%2C%20how%20we%20used%20elevated%20privileges%20in%20the%20SharePoint%20solutions.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722414%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722414%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F16525%22%20target%3D%22_blank%22%3E%40Rishi%20Gupta%3C%2FA%3E%26nbsp%3BRight%2C%20so%20are%20you%20connecting%20to%20this%20API%20using%20a%20username%20and%20password%3F%20(scary)%20Sounds%20like%20you%20are%20saying%2C%20this%20API%20doesn't%20have%20support%20for%20a%20Client%20Credential%20flow%20using%20tokens%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722435%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722435%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%26nbsp%3B%20I%20am%20not%20completely%20sure%20if%20the%20application%20supports%26nbsp%3B%3CSPAN%3EClient%20Credential%20flow%20using%20tokens.%20I%20might%20need%20to%20check%20with%20the%20respective%20team.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-722470%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20framework%20Vs%20SharePoint%20hosted%20add-in%2C%20when%20building%20CRUD%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-722470%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F16525%22%20target%3D%22_blank%22%3E%40Rishi%20Gupta%3C%2FA%3E%26nbsp%3BYa%20I%20would%20check%20with%20the%20people%20who%20built%20the%20API%20and%20see%20what%20authentication%20mechanisms%20are%20available%20to%20you...%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

Previously (Early stages of sharepoint online) i use to build many sharepoint hosted add-ins to implement scenarios such as:-

1. using node.js or pure javascript, i build a sharepoint hosted add-in.

2. the add-in integrates with sharepoint lists using REST api.

3. i use this approach to implement some advances CRUD operations that can not be achieved using sharepoint lists' views and forms. something similar to what is provided in this link https://www.c-sharpcorner.com/article/rest-crud-operations-using-sharepoint-hosted-app-office-365-pa...

 

but one drawback i have faced recently, is that the add-in will be rendered in the classic experience, and i can not get the add-in to render using modern experience. now i read about this and many folks mentioned the SharePoint framework appraoch, which can allow us to build modern web parts. but from my experience i use web parts to display information, and i never saw a web part which provide CRUD operations. So if i want to provide CRUD operations in modern experience,  then is building modern web parts using SharePoint framework the way to go?

second question. can we force the SP hosted add-in to render using modern experience ?

 

//Hint. i can not use power apps in my case, as i have external users who need to access the CRUD operations, and currently power apps does not work for external users.

 

Thanks in advance for any help on my above 2 questions.

Regards

 

12 Replies
Highlighted

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é

Highlighted

@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é


@AndreKrijnen

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 ?

Highlighted
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 requirements
Highlighted

@Juan Carlos González Martín 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 requirements

@Juan Carlos González Martín

I 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

 

Highlighted

@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? 

Highlighted

@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

Highlighted

@Beau Cameron Thank you for your response. I am currently looking for solutions wrt SharePoint 2019. We are planning to host a Form in SharePoint which will save the data in a list and then calls REST API from another 3rd party system. The Third party system will talk to SharePoint hosted Form using REST calls and it will be two way communication. The reason I asked this is because in this case Provider Hosted application makes more sense to have greater control on the REST API as the calls will not be made in context to user but a separate account. Let me know if you have other thoughts.

Highlighted

@Rishi Gupta What service/API is it? Generally speaking, APIs may support client credential flows and not just user flows. Is this available to you?

Highlighted

@Beau Cameron The API's are third party custom solution. User might not have access to the 3rd party solution but the application can be accessed using a common account, how we used elevated privileges in the SharePoint solutions.  

Highlighted

@Rishi Gupta Right, so are you connecting to this API using a username and password? (scary) Sounds like you are saying, this API doesn't have support for a Client Credential flow using tokens?

Highlighted

@Beau Cameron  I am not completely sure if the application supports Client Credential flow using tokens. I might need to check with the respective team.

@Rishi Gupta Ya I would check with the people who built the API and see what authentication mechanisms are available to you...


Related Conversations
Working with excel in Sharepoint desktop app
IanH1 in SharePoint on
2 Replies
I want users to add New lines items in response
osman_124 in Microsoft Forms on
1 Replies
Share Button added to the Toolbar!
HotCakeX in Discussions on
13 Replies
Make Share function in Edge more useful
HotCakeX in Discussions on
2 Replies
Sharing an excel sheet public link
shunde3 in Microsoft Teams on
6 Replies