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

Question

Question

How do I find information on the SDK DLLs and their published methods and properties without Visual Studio?

asked on September 29, 2021

I'm trying to expand my tool kit to include workflow scripting, but I do not have access to Visual Studio.  How do I find out what the methods and properties of the various Laserfiche DLLs are, and what they do?

0 0

Replies

replied on November 3, 2021

I don't believe that you need to go into Visual Studio, but rather just install the LF SDK and look through the documentation for it.

1 0
replied on November 4, 2021

The documentation from the SDK install shows information for the Laserfiche.Workflow components, but not for the RepositoryAccess items.

0 0
replied on November 3, 2021

James,

If you don't have access to the SDK and the documentation included with it there are a couple of ways to 'peek' inside the various classes that are exposed in the SDK Script activity.

The easiest, although a bit cumbersome, is to use the Intellisense feature built into the script editor itself.  For instance, in the script editor you will see that the default template already imports the Laserfiche.RepositoryAccess assembly.  If you want to examine all of the public classes and their exposed methods and properties in that assembly all you have to do is start typing 'Laserfiche.RepositoryAccess.' in the editor and the Intellisense window pops up to display the details.

 

Digging a bit deeper if you instantiate a variable as one of the exposed classes you can use Intellisense to view the properties and methods of that new object.  So if you instantiate a variable called 'docInfo' as a Laserfiche.RepositoryAccess.DocumentInfo you can then use the Intellisense feature to see all of the methods and properties of the DocumentInfo class.

Likewise, if you want to see what objects are exposed in the Laserfiche.DocumentServices assembly all you have to do is add it as a reference in the script editor and browse it using the same functionality.

You mention that you don't have access to Visual Studio.  Not sure if you are aware but Visiual Studio 'Community' edition is a free download from Microsoft.  The Community version is a complete IDE for software development and it is what we use to develop our custom integrations and workflow activities.  Once you have VS installed you can add whatever Laserfiche assemblies you want to a project and use the Object Browser to see all exposed classes, methods, and properties.

There are a lot of workflow script code examples on the Answers website that should get you started with the major classes available in the RepositoryAccess and DocumentServices assemblies.

Finally, I wouldn't be too worried about not having access to the SDK documentation.  Much of the SDK documentation is little more than listings of the available classes and their exposed properties and methods with very little in the way of actual code examples except for some very basic code snippets.

Hope that helps!

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

Sign in to reply to this post.