Violet Variables
Last updated
Was this helpful?
Last updated
Was this helpful?
To use Violet Variables, you must have other data in the system that you would like to use in a script, either through creating integrations or by creating parameters. In my example, I have created a Duro Integration that is pulling in a variety of components.
To create a Violet Variable use the reserved Violet["variable_name"] syntax within your script, where the variable_name can be replaced with the name of your choice. Variable names must be unique within each script and can only contain letters and numbers. You can use an underscore to separate words.
After creating a variable, you'll be prompted to link the variable to the data of your choice. Each variable you have created will show up in this sidebar, with a link symbol next to it. Clicking on the link will open a popup that lets you search through the data in the system. Select the property you would like to link to that Violet Variable.
The selected property value will display next to the link symbol. Ensure it is correct, and link any additional variables you may have. Hit save to save the links and close the sidebar.
Click Run Script. Your output will accurately reflect the values of each Violet Variable at the time of the run.