How to reference Javascript code (one static parameter) that can be used globally or in a specific solution in your organization

To reference Javascript code that can be used globally or in a specific solution using a Calculator step, follow the below instructions:

  1. Create a parameter in the Global solution or in the required solution by clicking on the 3 dots circled in red next to the solution name, click on Create for the tab to expand and then click on parameter as underlined in red as illustrated below.

image

  1. The below page will appear. Type a parameter name and select Javascript as a Value Type. Type out your code in the Value field and click on Save.

  1. Add in a Calculator step and click on the highlighted link icon next to the Javascript Code field to reference the parameter as shown in the below image. This will replace the Calculator’s configuration where you can’t add more code to the Calculator step.

image

  1. The below page will appear. If there are other existing parameters, a list will appear for you to select from. Click on the required parameter.

image

  1. Illustrated below is how the parameter will appear in the Javascript Code field in the Calculator step. Click on the Save button to save the change.

image

How to reference a solution/ global parameter in a Calculator step & send an email notification