Count number of documents required for veriification in a batch

Hi everyone,

I have setup a hotfolder where i'm dumping files into there and have 2 export rules setup.

one sends to an export location and another is setup to export to an exception location once the operator finishes with verifying the task.

i created a workflow called "Notify User" right after recognition as a "User type" for base type. I've created the script as a Batch Processing as a C# Script.

My script is below

using System;
using System.Net;
using System.Net.Mail;
using System.Net.Mime;

SmtpClient smtp = new SmtpClient("");
DateTime now = DateTime.Now;

smtp.UseDefaultCredentials = true;

MailAddress emailFrom = new MailAddress("", "Verfication Notifier");

MailAddress emailTo = new MailAddress("", "Recipient Email");

MailMessage email = new System.Net.Mail.MailMessage(emailFrom, emailTo);

Email.Subject = " Document(s) Required for Verification - Batch Name " + Batch.Name;

Email.SubjectEncoding = System.Text.Encoding.UTF8;


email.Body = "<p>NOTIFICATION: Requirements to verify document(s) in batch " + Batch.Name + "</p><p>Please open Verification Station to verify document</p><p>Thank you</p>";

email.BodyEncoding = System.Text.Encoding.UTF8;

email.IsBodyHtml = true;



catch (Exception ex)




I'm trying to have inside the email specifying how many documents in the batch that require verification.

i've triied using Batch.Document.count however thats giving me total of documents in the batch





Please sign in to leave a comment.