You are viewing limited content. For full access, please sign in.

Question

Question

Workflow to overwrite existing tiff and update version

asked on November 11, 2020

Hi Guys,

 

I am sure this has already been asked before but I have a client who wishes to update a version of an existing tiff in the LF client via workflow.

I have this working for electronic files with the download/attach activities but this method does not work for tiffs.

Does anyone have the script required for updating tiff versions?

 

Thanks

Tina

0 0

Replies

replied on November 12, 2020

Hi Tina, 

When you say "update" do you mean replace? What's the update exactly, and if replace, where does the source come from?

-Ben

0 0
replied on November 12, 2020

Hi Ben,

 

Yes replace. The file to be replaced will be in Laserfiche records folders and the new file is imported via import agent.

 

Thanks

Tina

0 0
replied on November 12, 2020 Show version history

If you are replacing all the pages in the file. You could setup your Import Agent profile for that. If however you are trying to replace only selected pages of a multipage document, IA is not the tool for the job.

2020-11-15 10_00_38 IA dialog.png
0 0
replied on November 19, 2020 Show version history

Hi Tina,

I don't have a pre-written script for this but you have two options:

Use the importimage and exportpages methods of Laserfiche.DocumentServices.DocumentImporter and Laserfiche.DocumentServices.DocumentExporter

or the WritePagePart and ReadStream methods of  Laserfiche.RepositoryAccess.PageInfo

The first option is easier, the second option more efficient. 

If you'd like a custom activity, feel free to send me a message.

Regards,

Ben

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.