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

Question

Question

Monitor Laserfiche folder using SDK

SDK
asked on November 25, 2024

Hello Folks 

I writing application to get all documents in specific folder in Laserfiche, I am asking if there an event function to trigger or notify if a new document added to Laserfiche folder?

 

Regards

 

 

0 0

Replies

replied on November 25, 2024

Workflow could most likely do this, albeit it wouldn't be part of your application, but workflow could also retrieve documents from a folder using a search for find entries activity. You can then setup a starting rule that fires when a new document is added to the folder.

0 0
replied on November 25, 2024

Agreed. The SDK will allow you to check the contents of the folder, but it doesn't have monitoring tools or a way to "subscribe" to events that I'm aware of.

Best bet may be to set up a workflow to monitor the folder, then that could trigger an API call with a Web Request activity to notify your application.

Even if it were possible with just the SDK, you'd probably still need an API endpoint in your app if you want to receive updates from the repository.

0 0
replied on November 25, 2024

I believe you can tap into the same Notifications system that Workflow uses via the SDK. Though depending on what you're doing, it might be easier to just stick with Workflow. Here's a screenshot from the documentation.

3 0
replied on November 25, 2024

Thanks for your responses,

I guess for now I check periodically for the total count of documents found in folder and preserve the new count, not the best practice but  I see no SDK functions to communicate with workflow to get the workflow results in my code

Regards

 

 

 

 

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

Sign in to reply to this post.