Table of Contents

Developer Information

We have decided not to open interfaces for the programmatic processing of platforms or prompts, including attached data. At this stage of AI development, we consider this setup to be an essentially manual process.

Definition of the dependency

In your app.json file, enter the following reference under dependencies:

{
  "id": "44a61c00-9e31-4b81-b133-0d8ca2230196",
  "name": "MODUS M365 MAGiC",
  "publisher": "MODUS Consult GmbH",
  "version": "23.1.0.0"
}

To use MAGiC and integrate your own processes, all you need is the M365 MAG Executor Codeunit. This is the starting point for all the magic.

Note

The syntax of the procedures can be found in the API help within Visual Studio Code.

You can use various procedures to generate texts, e-mails or word-wrap generated texts. Processing is always interactive; neither we nor Microsoft currently provide any background generation.

Tip

Some procedures allow additional texts to be added as a dictionary (additionalTextsToProcess: Dictionary of [Text, Text]). This allows you to enter your own texts programmatically or override configured Additional Values at the Prompt.

Magic

You can use various overloads of the Magic() procedure to generate texts for the current or a specified record in general.

MagicEmail

Various overloads of the MagicEmail() procedure make it possible to generate the text for an e-mail. If the Additional Values are set up accordingly, the fields such as Subject, Recipient etc. are also filled automatically.

WordWrap

The WordWrap() procedures allow you to wrap a returned or any text after a certain width.

Either for the text itself with the corresponding return as a list or directly in document lines by specifying the data record, the target field number and line no. field number.