Page 3 of 3

Re: Using Beanshell to move Mails

PostPosted:Tue May 01, 2012 4:37 pm
by jllort
OK, you should pass the token, when you are executing on user environement not the null value

String token = JcrSessionManager.getInstance().getSystemToken();

Re: Using Beanshell to move Mails

PostPosted:Fri May 04, 2012 11:43 am
by Rudolf21
Yes, now the script works fine!
I didn't noticed this null value...
Thank you very much! Now, the script is ready to do his task =)

Greetings

Re: Using Beanshell to move Mails?

PostPosted:Wed Jul 25, 2012 7:08 am
by hedrick
Note that if you try sending them again, they won't be in the same chronological order as they were before the moving them out.Visit here to get more information maximum 10

Re: Using Beanshell to move Mails

PostPosted:Thu Jul 26, 2012 3:20 pm
by jllort
Try using api exposed methods,http://doxygen.openkm.com/5.1.x/d9/d6d/ ... _1api.html in your case http://doxygen.openkm.com/5.1.x/de/de7/ ... ument.html
Code: Select all
OKMDocument .getInstance().move