
Shivani Ramesh Sarkale
I created a script and used constants for the hardcoded values, but when I tried to use that script in another workflow, I couldn't see the constants. Could you please let me know how to make constants global, or is there a way to store hardcoded values and use them across multiple workflows?
0
Comments
Please sign in to leave a comment.
Constants are scoped to the workflow. Could you share your use case for needing a constant at a global level? We can consider an enhancement request.
In the meantime, you could probably create a workflow to hold the constants you want to use in other workflows. Create a custom step to grab the constant from that workflow and output the value. Then, use that step in your other workflows.
This is the API endpoint you would need.
https://help.xmatters.com/xmapi/#plan-constantsÂ