Automate Script for Moving documents

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

Moderator: car031

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

Automate Script for Moving documents

Post by leninkumarmp » 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 4149 times

car031
Posts: 154
Joined: Tue Apr 17, 2012 8:27 am

Re: Automate Script for Moving documents

Post by car031 » 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

Post by leninkumarmp » Sun Oct 30, 2016 10:26 am

Thank You. It worked!

Locked

Who is online

Users browsing this forum: No registered users and 2 guests