cancel
Showing results for 
Search instead for 
Did you mean: 

Releasing contract document which is in locked state

Former Member
0 Kudos

Hi Experts,

We are in Sourcing 10.0.

Have a doubt in Contract Documents Approval Workflow.

Suppose document is pending for approval with some approver, and the approval is no more required(as he leaves the org).

So now document is in locked state , is there any way owner of that document can cancel the workflow and will be able to continue work on that document.

Any leads would be of great help!!

Regards,

Geetika

Accepted Solutions (1)

Accepted Solutions (1)

kushagra_agrawal
Active Participant
0 Kudos

HI Geetika,

You can write a toolbar script to unlock the CD which is routed for approval and Check if the current logged user is Owner then toolbar script should work else throw relevant error.

Below is the line which you need to write in Toolbar script to unlock the Document:

IapiDocumentLockManager.unlockDocument(session, doc);

Hope it helps!

Best,

Kushagra A

Former Member
0 Kudos

Hi Kushagra,

Thanks

It worked:)

Regards,

Geetika

Answers (0)