Skip to content

juliandittmann/AL.Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 CI/CD

license

Discord Logo

Discord for Dynamics 365 Business Central

Integrate Discord chat features in Dynamics 365 Business Central with widgetbot.

Setup Discord Server

Do the following steps:

  1. Follow the tutorial
  2. Recieve the serverid and a channelid

Connect to the Discord server from Dynamics 365 Business Central

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;
}