apply PE_createNewRevision from client method

hello,

My initial goal is to have a confirm pop up when using the action to create a new revision.(for parts)

I have an action that run a simple client method like this:

if(confirm("creation of new major revision"))
{

 //here i want to launch the PE_CreateNewRevision 

}

I've tried with applyMethod but the method doesn't seem to apply on the part instance. Any help on understanding this is much appreciated.

thanks

lucas