cancel
Showing results for 
Search instead for 
Did you mean: 

Script Hooks not Working

svillalon
Confirmed Champ
Confirmed Champ

Goal:

To execute different type of scan queue event script hooks. I have tried Post Sweep and Post Index script hooks.

 

Things I have done:

In the execute methods I wrote app.Diagnostics.Console("Hello from {whatever script hook im in}");

 

I configured these script hooks in Configuration Import->Script Hooks.

Then assigned the unity scripts to the scan queue where I want it to execute. 

 

After configuring, I manually swept the directory in that scan queue. The doc went to Awaiting Advanced Capture (because this scan q will be using AC). 

 

I tried performing and skipping Advanced Capture and manually indexing it to see the difference.

 

Result:

Nothing got printed to the console, so I assumed the script didn't execute. 

 

 

4 REPLIES 4

Jeff_Cibroski
Content Contributor
Content Contributor

Hello @Seth Villalon 

 

Can you confirm which client is being used to perform the sweep and index processes? If the OnBase Client is being used, then the Unity Scripts will not execute as the OnBase Client utilizes VB Scripts.

If that’s the case, when would Unity Scripts be executed?

@Seth Villalon

 

The Unity script scan queue hooks are executed when interacting with scanning/indexing via the Unity client.

Thanks @Scott McLean!