From the Teams messenger bot you may search for repository objects (MQL query by name, description attributes, glossary category). Search executes MQL query on the configured MetaKarta application server using the REST API. Text is searched in 'Name' and 'Description' fields. The results are limited to 10. Search result are cached so object changes won't be reflected in the Teams object.
For the search the bot uses "the current Teams user email" and looks for "a matching user within MetaKarta by email". If no matching user is found the bot will return an error message for the search request:
If the user is found but it does not have a default configuration in any attached group, the bot will return another error message for the search request:
Command Box
The command box is the top input area in Teams. It is available in any chat.
To start a search the user should select the bot (type / and then bot identifier, /MIMM by default) and type some text for which to search. Results will be displayed in "preview mode" (a minimal information block). The search result may be selected and shown in the "full mode"(full information block). Search results may be copied as regular messages into any chat.
Command box search requires the bot to be installed for personal (1 to 1) chat.
Message context menu
The message context menu contains a Search in MM action which searches by message text. The Message context menu may be opened using the context menu.
Results will be posted to the conversation.
If the context menu doesn't have the option Search in MM then it is hidden under the context sub-menu More options. Teams remembers the latest used context menu actions, so next time it will be shown in the "main context menu" not the sub-menu.
Compose message area menu
The Compose message area has a menu which opens by clicking the plus sign. There is an option to Search in MM which shows a popup menu and a text box to input for search. While typing, results are shown immediately in preview mode. The search result may be selected and shown in the "full mode"(full information block). Again, the search results may be copied as regular a message into any chat.
Text command
The bot understands the special text commands "help" and "searchmm [some text]". If you type some text after the "searchmm " command, the bot will search it in the MetaKarta.
Result will be posted into an "compose message area" so the user can copy it or send it to the conversation.
In the group (or team/channel) chat where you want to send a message to the bot, it should be mentioned with "@"(for example "@MIMM searchmm term"). This is referred to as a "mention".