I want to duplicate Notifications
(In-app and email notification settings) in telegrams to users.
The logic is simple, after the system sends an alert, Workflows forwards the message to a telegram.
The user has a Varchar type field "telegramGroupChatId" which I want to extract using a formula and substitute it into Payload
$chatId = assignedUser.telegramGroupChatId;
the problem is that I can't get the "telegramGroupChatId" value from the user, assigned User is not filled by the system but added to assigned Users
(In-app and email notification settings) in telegrams to users.
The logic is simple, after the system sends an alert, Workflows forwards the message to a telegram.
The user has a Varchar type field "telegramGroupChatId" which I want to extract using a formula and substitute it into Payload
$chatId = assignedUser.telegramGroupChatId;
Code:
{ "chat_id": "$$chatId", "text": "*{$subject}*\nDate: {$dateSent}\nTest: {$body}", "parse_mode": "HTML", "disable_web_page_preview": "True" }
Comment