I'm going to guess the answer is no, but is there ...
# suitescript
e
I'm going to guess the answer is no, but is there a way to get a workflow state condition(s) either via script or suitesql?
s
If you have the instance ID, then yes, via Search
e
Via which field? Is is Customization -> Conditions?
or is that for the workflow?
s
you create a workflow instance saved search in the UI
call it in your script
it can be challenging though, as it's not a scriptable search, so making it dynamic could be a problem
e
Yeah, I'm trying to build notifications outside of the workflow, and some states have conditions I need to reference
s
If it was me, I'd be using a custom "WF State" field on the record impacted by the workflow, and within the workflow, at each state, update that field
much better from a performance stand point
e
Thanks for the idea, I worked around it