cancel
Showing results for 
Search instead for 
Did you mean: 

Cancell Workflow using Script

Former Member
0 Kudos

Hi All,

I am writing script to cancel workflow which is in 'awaiting for approval' status. For this i am writing a toolbar script. In this script when i am using the variable 'current_phase' i am getting null point error. Not sure why it is giving null but this same variable is working for for 'document life cycle' context but not for toolbar context. Can some help me to get the current_phase value in toolbar script?

Is anything else we need to do to get this variable?

Regards,

Gurvi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gurvi,

At the Toolbar script context probably current_phase is not available implicitly.You can use doc.getCurrentPhase() to get the current phase of the document.

Thanks

Uday