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.
Task | Method with parameter | Explanation |
---|---|---|
Create an MST team | teams.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 channel | teams.createChannel(config) | Creates a new MS Team channel with a config variable from teams.createChannelConfig(). |
Get all MSTs | teams.getAllTeams() | Returns all MST teams |
Delete an MST team | teams.archiveTeam(teamId) | Deletes an MST team if it is not restored within 30 days. |
Get all documents from MST Team channel | teams.getAllDocumentsOfChannel(teamId, channelName) | Returns all documents from a single channel. |
Get a specified number of messages from a channel | teams.getChannelMessages(teamId, channelId, amountMessages, pIncludeFormattedMessages) | Returns the defined amount of messages from an MST channel. |
Get the next amount of messages from a channel | teams.getNextChannelMessages(pNextLinkUrl, pAmount, pIncludeFormattedMessages) | Returns the next defined amount of messages from an MST channel. |
Send notification to MST | teams.sendNotification(servicerURL, channelId, message) | Send notification to MST channel. |
Add member to MST team | teams.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 Team | teams.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 teams | teams.getAllArchivedTeams() | Returns all MST teams that are within the 30 day window before they are deleted. |
Show all available channels for a team | teams.getAllChannels(teamId, null) | Returns all available channels of an MST team. |
Remove a member from an MST team | teams.removeInternalMembers(channelId, internalUserConfig) or teams.removeExternalMembers(channelId, externalUserConfig) | Removes either an internal or external from a MST Team. |
Return presence of user | teams.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 users | teams.getPresences(userObjectIds) | Returns an array of JSONs of the specified users with their respective availability and activity as well as their id and metadata |