03-30-2018 12:03 PM
Have any plans or roadmaps been announced to potentially support PowerShell in addition to (or as a replacement for) VBScript?
While I am fluent in PowerShell, I haven't used VBScript in probably 15 years.
Thanks for any information you may be able to provide.
01-29-2024 10:50 AM
Hi
You can find more information required for creating a Client Pre-processor in the OnBase Automation and Client API documentation in the OnBase Client SDK ...
https://community.hyland.com/gallery/items/50539-onbase-client-sdk-all-versions
The documentation references using C#, but I imagine it wouldn't be hard to abstract that to PowerShell.
Best wishes.
01-29-2024 11:06 PM
Here is a quick example on how to get started with Unity API in Powershell. The Unity API Documentation can be found here https://sdk.onbase.com/
Import-Module -Name "C:\Program Files (x86)\Hyland\Hyland.Interop\Hyland.Types.dll"Import-Module -Name "C:\Program Files (x86)\Hyland\Hyland.Interop\Hyland.Unity.dll"$URL = "https://onbaseServer/AppServer64/service.asmx"$DataSource = "OnBaseDB_datasource"$Username = "user"$Password = "password"#Standard Login Proceodrue$oAppProps = [Hyland.Unity.Application]::CreateOnBaseAuthenticationProperties($URL, $Username, $Password, $DataSource);$oApp = [Hyland.Unity.Application]::Connect($oAppProps)#NT Login Procedure#$oApp = [Hyland.Unity.Application]::ConnectUsingDomainAuthentication($URL, $DataSource)#Get the logged in user's name$OnBaseUsername = $oApp.CurrentUser.RealNameWrite-Host "The current OnBase user is $name" #Get some document properties$Document = $oApp.Core.GetDocumentByID(1234)Write-Host "The document was created by: " + $Document.CreatedBy.DisplayName#Disconnect from OnBase$oApp.Disconnect()
03-30-2018 12:21 PM
Hi Scott,
At present there are no plans to replace or augment VBScripts with PowerShell. If you would like an SCR for this functionality, however, feel free to reach out to the API Support team and request for an SCR.
Best,
Adam Kuhn, API Analyst
OCAPI | OCWE | OCWA | OCASA | OCI
03-30-2018 01:08 PM
11-02-2018 09:06 AM
I believe the answer is no based on the question above but figured I'd get the clarity. Can I run a Powershell script as a Preprocessor?
01-26-2024 07:53 PM
Yes. You can run PowerShell as a preprocessor. We prefer PowerShell as well.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.