Beispiel #1
0
        private string[] GetTeamsIncomingConfig(string teamName)
        {
            //teamName = "Hackathon2020";
            string[] returnInfo = null;

            TeamsPlugin pluginInfo = PXSelect <TeamsPlugin,
                                               Where <TeamsPlugin.name, Equal <Required <TeamsPlugin.name> > > > .Select(new PXGraph(), teamName);

            if (pluginInfo != null)
            {
                returnInfo = new string[2];

                returnInfo[0] = pluginInfo.IncomingWebhookName;
                returnInfo[1] = pluginInfo.IncomingWebhookURL;
            }

            return(returnInfo);
        }
Beispiel #2
0
        private string[] GetTeamsOutgoingConfig(string teamName)
        {
            //teamName = "Hackathon2020";
            string[] returnInfo = null;

            TeamsPlugin pluginInfo = PXSelect <TeamsPlugin,
                                               Where <TeamsPlugin.name, Equal <Required <TeamsPlugin.name> > > > .Select(new PXGraph(), teamName);

            if (pluginInfo != null)
            {
                returnInfo = new string[2];

                returnInfo[0] = pluginInfo.OutgoingWebhookName;
                returnInfo[1] = pluginInfo.OutlookWebhookToken;
                returnInfo[2] = pluginInfo.AcumaticaEndpointURL;
            }

            return(returnInfo);
        }