Hello Community,
I would like to handle incoming Omnichat message and invoke BP after such message will be received.
On the frontend i can do this like in eg.
CommunicationPanel.js
.....
if (sender === "NewIncomingChat")
...
but how to subscribe message on backend ? Do You have any tip how to do that ?
Regards,
Marcin Kott
Like
Marcin Kott,
The object name is OmnichannelMessages but it is not registered as Entity thus you can not find it in the Configuration section.
This was done intentionally as the architecture and table structure will change slightly in the upcoming releases to improve the functionality.
Best regards,
Bogdan
Hello Marcin,
You can use [Omnichat] object to trigger the business process whenever a new chat is created. I believe this should help you with your business task.
Please let us know if any additional help is required.
Best regards,
Bogdan
Hi Bogdan,
I had a similar assumption and You confirmed it. This is not a perfect, because still i don't know whether message is incoming or outcoming (i only know that chat is updated) but then i may use script task and check direction of last message by OmnichannelChatProvider class and drive process to the accordly way.
Could You tell me where are storage Omnichat Messages, because i can't find this object ?
Regards
Marcin
Marcin Kott,
The object name is OmnichannelMessages but it is not registered as Entity thus you can not find it in the Configuration section.
This was done intentionally as the architecture and table structure will change slightly in the upcoming releases to improve the functionality.
Best regards,
Bogdan