Skip to main content

Functions

ADITO Functions (JDito)

Each function has a documentation that explains how to use it in ADITO. The following table shows these functions and a short explanation. All functions are part of the "teams" system library. You must import this library to be able to use these functions in ADITO Designer.

TaskMethod with parameterExplanation
Create an MST teamteams.createTeam(groupConfig, teamConfig)You create an MST team with predefined variables such as "groupConfig" and "teamConfig", which are objects created with special functions (teams.createGroupConfig() and teams.createTeamConfig()).
Create new channelteams.createChannel(config)Creates a new MS Team channel with a config variable from teams.createChannelConfig().
Get all MSTsteams.getAllTeams()Returns all MST teams
Delete an MST teamteams.archiveTeam(teamId)Deletes an MST team if it is not restored within 30 days.
Get all documents from MST Team channelteams.getAllDocumentsOfChannel(teamId, channelName)Returns all documents from a single channel.
Get a specified number of messages from a channelteams.getChannelMessages(teamId, channelId, amountMessages, pIncludeFormattedMessages)Returns the defined amount of messages from an MST channel.
Get the next amount of messages from a channelteams.getNextChannelMessages(pNextLinkUrl, pAmount, pIncludeFormattedMessages)Returns the next defined amount of messages from an MST channel.
Send notification to MSTteams.sendNotification(servicerURL, channelId, message)Send notification to MST channel.
Add member to MST teamteams.addInternalMembers(teamId, internalUserConfig) or teams.addExternalMembers(teamId, externalUserConfig)to add a member to an existing MST team. You must specify whether the user is internal or external and requires an invitation.
Restore a deleted MST Teamteams.unarchiveTeam(teamId)If an MST Team is archived, it will be unarchived. You can only restore an archived MST Team within a 30 day window.
Show all archived teamsteams.getAllArchivedTeams()Returns all MST teams that are within the 30 day window before they are deleted.
Show all available channels for a teamteams.getAllChannels(teamId, null)Returns all available channels of an MST team.
Remove a member from an MST teamteams.removeInternalMembers(channelId, internalUserConfig) or teams.removeExternalMembers(channelId, externalUserConfig)Removes either an internal or external from a MST Team.
Return presence of userteams.getPresence(azureId)Returns a JSON of the specified user with their respective availability and activity as well as their id and metadata
Return presence of usersteams.getPresences(userObjectIds)Returns an array of JSONs of the specified users with their respective availability and activity as well as their id and metadata