cancel
Showing results for 
Search instead for 
Did you mean: 

Get Batch ID and Batch Name

Not applicable

Using the Unity API... is there a way to get the batch ID and batch name of a document that was brought in via DIP?

6 REPLIES 6

Not applicable

For a single document, right-click and select Properties - the batch number is listed there.

Then go to Processing > DIP and match the ID to the batch name.

To Query for the info, the itemdatapage.batchnum record has the batch number for the doc and the parsed.quie.batchfilename the batch name.

If you provide more detail on the situation, you can probably get a more tailored response.

Not applicable

I was hoping to get this information using the Unity API and a Unity workflow script.  A backup plan could be to implement a sql query within the script but prefer to use the API. 

Patrick_Ramser
Star Contributor
Star Contributor

Have you tried the Document.GetBatch() method, Chris? That should suffice for what you want to do.

This method only obtains information if the document was scanned though right?  If that is incorrect and it also works for DIP batches do you have an example I could look at?

From what I've seen in the SDK the parameter you pass in is BatchType which only has Scan as a member:

Parameters

type
Type: Hyland.Unity.BatchType
The type of batch.

Return Value

The Batch that this document belong to.