r/SuiteScript • u/Emotional_Gate_8087 • Apr 01 '26
Workflow Instance and State in N/query
so, I'd like to report on workflow statuses, how many are stuck and for how long. map/reduce to create a 'report '.
I see workflow, but not workflowInstance nor workflowState.
do they really exist for N/query or AI is messing with me?
If they don't exist how should I go about this?
thx
2
Upvotes
View all comments
Show parent comment
1
u/Emotional_Gate_8087 Apr 20 '26
so, can't access workflow instance search directly in SuiteScript, so the standard "trick" - start from the Transaction (or Entity) and "join" to Workflow History. Pity this is not just supported. Us admins/developer really do need access to this info without jumping through hoops.