Community

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;

try
{
SmtpClient smtp = new SmtpClient("smtp.user.au");
DateTime now = DateTime.Now;

smtp.UseDefaultCredentials = true;

MailAddress emailFrom = new MailAddress("user@user.com", "Verfication Notifier");

MailAddress emailTo = new MailAddress("user@user.com", "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;

smtp.Send(email);

}

catch (Exception ex)

{

FCTools.ShowMessage(ex.ToString());

}

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

 

0

Comments

0 comments

Please sign in to leave a comment.