+49 (30) 467086-20 service@microtool.de

Create script files

The script contains the actual function that the extension function is to execute later. To edit a script, you need a suitable tool. We recommend Visual Studio Code.

Creating script files using the extension function

Script files can be created automatically with an extension function. In the Create Extension Function dialog box, select the Generate Directory including Main File option.

Creating script files manually

It is also possible to create a directory and files individually. In the context menu of the extension function, choose Edit Script Package/ Import Directory or New Directory. Make sure that the directory is located directly below the extension function, otherwise error messages will occur. You can then drag and drop the desired files into the directory or use the context menu command Create/ Import File.

Then open the extension function and assign the start file in the Source code field using the […] button.

Creating script files subsequently

If you have created an extension function without a directory and script files, you can subsequently create a directory with initial script files for the extension function. In the context menu of an extension function, choose Edit Script Package/ Generate Directory including Main File. This command automatically assigns the index.js file to the extension function.

If you already have a local directory with an entry file and want to assign it manually, choose Edit Script Package/ Import Directory in the context menu of the extension function. Make sure that the directory is located directly below the extension function, otherwise error messages will occur. Then open the extension function and assign the start file in the Source code field using the […] button.