I have a list of contacts on the left and a list of their messages on the right.
I have an exposed REST API that creates a Message record and creates or updates a Contact record.
How can I have the lists of contacts and messages refresh or update when a new contact or message record is created or updated on the server side?
Hi,
Maybe this helps: https://medium.com/darwinlabs/using-webhooks-with-server-sent-events-in-outsystems-cd0506af38c9
Regards,
Daniel
Thank you for pointing me to the path.
I'm following the instructions here https://www.outsystems.com/forge/component-documentation/10975/sse-push-event-hub-o11/0 and I've gotten to the very end where it says That's all for the simplest setup! Whenever the "Broadcast" *Service Action* in the HUB is called by any agent, all clients will receive the issued message.
Can you point me to where I can learn to have the agent call the service action? I don't recognize that terminology.
You may consider Pusher (https://pusher.com/) for your use case. Steps to follow are
I have attached the Extension and Sample OML to demonstrate this for your reference. Do setup the values in Site Properties ( appid, apply, secret, channel, event name , cluster ) and javascript code ( appid, cluster, event name ) as per your configuration. Sample OML has exposed REST API and when data is received it stores in the database and send the message to Pusher. Client side when the message is received will refresh the aggregate.