- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 02:31 PM
I'm in Workflow Properties on Fuji.
I've created a workflow to look at the Incident Table. Under conditions, I've set some pretty standard ones:
Priority is 3
Page Immediate is false
Short Description contains javascript:gs.getProperty('Server - name')
The idea here is that I only want a workflow to run if the server name appears in the short description of the incident...I'd rather not hardcode the server name as our servers have a tendency to be periodically renamed (plus it helps with testing).
I was able to use similar logic in conditional statement for reports, but it doesn't seem to translate to Workflows...
I also tried removing the javascript part, and simply have gs.getProperty('Server - name'), but that failed as well...
So my question is, how do you use sys_properties in conditional statements?
Extra Credit question: Can I use gs.getProperty() to set the 'Default Value' under 'Workflow Inputs'?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 03:38 PM
Hi Adam,
By default, the condition field does not do any parsing/interpretation/evaluation of javascript: code. I've tried this in my own fields and haven't yet figured out how it is done for things like lists and module filters that use constructs like javascript:gs.getUserID(). There must be something hard coded in the platform to recognize certain fields on certain tables and parse it some how to interpret the code. Clearly the one on workflow is not "special" in this way. I'd love to know how it's done and if it's something we can tap in to, but right now I'm at a loss to provide you with an answer to insert properties or any other code in certain places.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 03:38 PM
Hi Adam,
By default, the condition field does not do any parsing/interpretation/evaluation of javascript: code. I've tried this in my own fields and haven't yet figured out how it is done for things like lists and module filters that use constructs like javascript:gs.getUserID(). There must be something hard coded in the platform to recognize certain fields on certain tables and parse it some how to interpret the code. Clearly the one on workflow is not "special" in this way. I'd love to know how it's done and if it's something we can tap in to, but right now I'm at a loss to provide you with an answer to insert properties or any other code in certain places.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 08:13 AM
Hey guys,
I am sure this is solved long time ago but as I found this toipic while I was looking for a solution and found none actually, and later solved that on my own, I prefer to share what I got so next "me" looking for that can have it sorted out fast 🙂
My approach was - create Run Script action and there use workflow.scratchpad.my_custom_property = gs.getProperty("my_custom_property ");
later I use this in a "If" activity and check it by adding custom condition (RMB - Add condition). In there I use this as condition workflow.scratchpad.my_custom_property == "whatever you need here".
Hope this helps someone.
Cheers,
Joro