Automate Script for Moving documents

We tried to make LogicalDOC as intuitive as possible, but an advice is always welcome.

Moderator: car031

leninkumarmp
Posts: 2
Joined: Fri Oct 28, 2016 8:03 am

Automate Script for Moving documents

Fri Oct 28, 2016 8:34 am

Hello,

Firstly Thanks for this wonderful product.

i need to move the documents once it is claimed and completed the task assigned by the user to another directory, how do i do this.
below is my workspace directory name and document name, please help me in the script and the procedure to establish the said task.

BPCLis the Workspace name:

Directory List:
1. TestDocMove
2. TestDocArc

Workflow created and deployed on "TestDocMove", new docuement received to the directory "TestDocMove" now i workflow completed but document is not moved.

document filename is "TestFile.xls"
Attachments
Screenshot_workflow.jpg
Screenshot of my workflow
Screenshot_workflow.jpg (6.99 KiB) Viewed 6610 times
car031
Posts: 154
Joined: Tue Apr 17, 2012 8:27 am

Re: Automate Script for Moving documents

Sat Oct 29, 2016 7:25 pm

You can use the Automation in the transition, you can call the $DocTool.move

Code: Select all

#foreach( $doc in $documents )
$DocTool.move($doc, "/TestDocArc")
#end
leninkumarmp
Posts: 2
Joined: Fri Oct 28, 2016 8:03 am

Re: Automate Script for Moving documents

Sun Oct 30, 2016 10:26 am

Thank You. It worked!

Return to “Usage”

Who is online

Users browsing this forum: No registered users and 22 guests