SPFX sharepoint online webpart subscibe to list webhooks

%3CLINGO-SUB%20id%3D%22lingo-sub-1923814%22%20slang%3D%22en-US%22%3ESPFX%20sharepoint%20online%20webpart%20subscibe%20to%20list%20webhooks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1923814%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3CBR%20%2F%3EI%20would%20like%20to%20know%20if%20is%20possible%20to%20develop%20spfx%20Sharepoint%20online%20webpart%20with%20similar%20behaviour%20which%20is%20in%20standard%20SharePoint%20list%20(document%20library)%20view%20webpart%20for%20example%20-%20when%20data%20in%20underline%20list%20is%20updated%20web%20part%20is%20automatically%20updated%20without%20any%20page%20reload.%3CBR%20%2F%3EI%20know%20about%20this%20possible%20solutions%3A%3CBR%20%2F%3E1)%20query%20list%20in%20intervals%20and%20check%20for%20update%3CBR%20%2F%3E2)%20Use%20webhooks%20on%20list%20with%20combination%20with%20custom%20Azure%20Functions%20-%26gt%3B%20SignalR%20or%20something%20similar.%3C%2FP%3E%3CP%3EIs%20there%20any%20simple%20solution%20how%20for%20example%20sign%20for%20webhook%20directly%20in%20webpart.%3CBR%20%2F%3EThank%20you.%3CBR%20%2F%3ETomas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1923814%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1923836%22%20slang%3D%22en-US%22%3ERe%3A%20SPFX%20sharepoint%20online%20webpart%20subscibe%20to%20list%20webhooks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1923836%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F878715%22%20target%3D%22_blank%22%3E%40Excal730%3C%2FA%3E%26nbsp%3BHi%2C%20if%20your%20Web%20Parts%20are%20on%20the%20same%20page%20you%20can%20use%20%22Dynamic%20Data%22%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fdynamic-data%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fdynamic-data%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1926199%22%20slang%3D%22en-US%22%3ERe%3A%20SPFX%20sharepoint%20online%20webpart%20subscibe%20to%20list%20webhooks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1926199%22%20slang%3D%22en-US%22%3E%3CP%3EInteresting%20hint%20about%20dynamic-data%20for%20some%20different%20scenario%20I%20have.%20But%20for%20current%20one%20List%20with%20data%20is%20just%20in%20background%20(not%20on%20same%20page%20%3A(%3C%2Fimg%3E%20)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi all,
I would like to know if is possible to develop spfx Sharepoint online webpart with similar behaviour which is in standard SharePoint list (document library) view webpart for example - when data in underline list is updated web part is automatically updated without any page reload.
I know about this possible solutions:
1) query list in intervals and check for update
2) Use webhooks on list with combination with custom Azure Functions -> SignalR or something similar.

Is there any simple solution how for example sign for webhook directly in webpart.
Thank you.
Tomas

5 Replies

@Excal730 Hi, if your Web Parts are on the same page you can use "Dynamic Data"

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/dynamic-data

 

 

Interesting hint about dynamic-data for some different scenario I have. But for current one List with data is just in background (not on same page :( )

 

@Beau Cameron nice this is exactly what I was looking for but unfortunately for List :( ... so at least I will put it to my tool-shelf for some other scenario.  :)

Will be something like this simple possible in future with Microsoft fluid? Scenarios which I have seen until now are more about multiple client connected directly .. not thought some DB/List

Any thoughts ? 

Ah, ya, I don't know when Subscriptions would become available for Lists and not Libraries. I don't think it will be a feature of Fluid Framework.

For what it's worth, I have done Option 2 - WebHooks to Azure Function to Socket.Io in my Web Parts before. So that is feasible.