This feature requires a license for Development Tools or the CRM Suite Core plan.
Creating CRMScripts
Which editors can I use?
You can use whatever code editor you prefer. For example, Visual Studio Code. You can even use Notepad. However, we recommend using the built-in editor in the SuperOffice admin client. This will give you coding assistance and syntax highlighting. You also have easy access to run and debug the script as you develop it.Running CRMScripts
CRMScript is extremely powerful. Unless you are cautious, scripting could potentially damage the data in your system. Know what you are doing and always test in a closed environment first.
- An administrator account for the tenant or installation
- A Development Tools (previously Expander Services) license or the Core plan
Where does CRMScript run?
You need to run your scripts in an environment that has a CRMScript interpreter. For SuperOffice CRM Online, this is available in the Sales and Service admin clients. In Sales:- Open the Admin client by selecting Settings and maintenance from the hamburger menu.
- Select CRMScript from the left menu.
- Click the cogwheel in the upper-right corner.
- Click System design and then click CRMScript.
How to add a script
- Click New script.
- At the Information tab, name your script, add a description.
- Enter a label to uniquely identify it when included in other scripts.
- Select the Script tab. Then type or paste your script.
- Click OK to save and Execute script to run it.
How to define which HTTP verbs are allowed
While adding a script it is possible to set allowed HTTP verbs.
This is relevant, for instance, when creating a Custom REST endpoint and this property applies only when a script is executed via:
blogic.fcgi?action=doScriptcustomer.fcgi?action=safeParseorcustomer.fcgi?action=printBin
When creating scripts through the CRMScript Agent: If the new property is omitted from the payload (as will be the case for most existing integrations), all verbs will be enabled by default.
When creating a script via the GUI: All verbs will be disabled by default, letting you explicitly choose which ones to allow.