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

Question

Question

Can LF Connector be executed by command line, with parameters passed through?

asked on March 4, 2016

I would like to be able to call LFC.exe and pass through certain profile information. For example:

 

C:\Program Files\Laserfiche Connector\LFC.exe -ProfileNametoExecute -Data:"<attribute1>sampledata</attribute1><attribute2>moresampledata</attribute2>"

 

At that point, it would launch the profile in Laserfiche Connector as specified and then pass tokens that the profile is expecting.

 

This would allow for some line of business systems to seamlessly integrate and pass data to Laserfiche Connector, rather than using the Laserfiche API.

0 0

Replies

replied on March 4, 2016

Hi Gareth, 

Can you describe this scenario a bit more, such as what's calling into Connector? We've discussed the ability to launch it through the command line and it's certainly something we're interested in, but the concern is that the whole framework of Connector is based around pulling information off of what the user is looking at - it's a completely front-end based integration. Would an active user session still be involved in the process here, or are you looking to use Connector as part of some backend or workflow integration - and, if the later, where would Connector be aquring information from?

0 0
replied on February 25, 2017

I never responded to this but it has floated back to the surface, and I would like for any LF engineers that are interested to get another look.

This would be an active user session, and it would just be for typical LF Connector actions. The data that is queued up for the command line comes with the system.

This allows systems to write integrations so that they will send all of the necessary data to a command line, which can interpret the data and launch the appropriate actions through the Connector middleware.

Alternative is to have them code to directly launch browsers with URLs, which does solve the scan/import/search functions. But you then don't have access to any of the other modern functions such as copying data to another app on screen, etc. This is primarily used for legacy applications where front end capture is not easily accessible. I have a couple apps in mind.

0 0
replied on February 26, 2017

We are trying to add support the command line with parameters, but didn't put it into the 10.2 release, since we are unsure about what kind of parameters should be supported. Could you please share the idea in you mind?

1 0
replied on April 6, 2017

I would suggest that the user needs to have already created a profile in Connector by name. The command line would call that profile by name, and then Connector assumes that it is going to be passed all of the appropriate Tokens that have been set up in that profile, by the Token Names.

For example, let's say you have created a Connector profile called "SalesforceScan"

The command line with tokens ContactName, PhoneNumber and ContactType might look something like:

"c:\program files\laserfiche\laserfiche connector\LFC.exe" -profile :"SalesforceScan" -tokens "[ContactName]:Gareth Cales[PhoneNumber]:8005555555[ContactType]:Human Resources"

Or some other form of delineation between tokens may be appropriate. Obviously the use of SalesForce doesn't make a lot of sense since the Connector already works with it through normal means.

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

Sign in to reply to this post.