A user with administrator rights can maintain a library of scripts. This will allow the use of scripts in the operator Script in the automation script, as well as call them through the API.
Script creation
- On the left sidebar, open the ADMINISTRATION section.
- Select WORKFLOWS.
- Click on the Plus button in the lower right corner of the screen.
- Select Script.
- In the New Script pop-up window that opens, enter the name.
- Click the Create button.
- In the window that opens, enter your script.
- Check the script by clicking on the ⋮ icon in the upper right corner of the screen and select Test Script.
Note: if there is an error in the code, the message Script Fails will appear. - Click on the Save button in the lower right corner of the screen.
Note: the created script can be used in the Script operator in a workflow. Changes are applied to all script calls. If the remote script was called in other scripts, an error will occur when executing other scripts.
Change script
- From the list, select the desired script and open it.
- Make changes to the code.
- To change the name or description, go to the Settings tab and make the necessary changes.
- Click on the Save button in the lower right corner of the screen.
Deleting a script from script page
- From the list, select the desired script and open it.
- Click on the ⋮ icon in the upper right corner of the screen and select Delete.
- Confirm the action.
Deleting a script from the general list
You can also delete from the list of scripts.
- Click the ⋮ icon next to the name of the script you want to delete.
- Select Delete.
- Confirm the action.