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

Question

Question

Get the Laserfiche Serial Number in Workflow Activity

asked on March 31, 2015 Show version history

Hi,

I have a piece of VB code that I am using to fetch the current connection's Laserfiche serial number.

I would like to know if there is a more efficient way of doing this within my custom activity?

Using wrapper As ConnectionWrapper = executionContext.OpenConnection90()
                Dim database As ILFDatabase = CType(wrapper.Database, ILFDatabase)
                ' Instantiates an LFApplication Object.

                Dim App As New LFApplication
                Dim Serv As LFServer = App.GetServerByName(database.CurrentConnection.HostAddress)

                Dim LFSerialValue = Serv.Serial

Thanks

Sheldon

0 0

Replies

replied on April 3, 2015

That's the right way to get the server serial.

0 0
replied on April 6, 2015

Hi Miruna,

Thanks for the confirmation. Was hoping that there is maybe a way that doesn't need me to create an LFApplication and LFServer object. Maybe by using the connection that the activity inherently makes. Just concerned that this slows the activity down, retrieving all this information.

Thanks

Sheldon

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

Sign in to reply to this post.