Integrate Discord chat features in Dynamics 365 Business Central with widgetbot.
Do the following steps:
- Follow the tutorial
- Recieve the serverid and a channelid
Use the provided control addin.
You can find an example in the demo app folder
usercontrol("WidgetBot"; "jdi Discord Widgetbot")
{
ApplicationArea = all;
trigger ControlAddinLoaded()
var
WidgetBotSetup: Codeunit "jdi Discord Widgetbot Setup";
WidgetBotSetupJObject: JsonObject;
begin
WidgetBotSetupJObject := WidgetBotSetup.CreateWidgetBotSetup('<serverid>', '<channelid>');
CurrPage.WidgetBot.CreateControl(WidgetBotSetupJObject);
end;
}
Preview: