Forum Discussion
SPFX sharepoint online webpart subscibe to list webhooks
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
- paulpaschaBronze Contributor
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
- Excal730Copper Contributor
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 😞 )
Excal730 Do you need it for Libraries? Check out notifications.
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/subscribe-to-list-notifications