NonConf tranID is 0 on trace

Sorry for the vague subject, but I’m having an issue on a BPM I’ve written.

I have an email alert generated via BPM that fires on any newly created non-conformance. It’s working with the exception that the NonConf number (TranID) is always 0 in the alert.

I turned on tracing and created a new nonconformance and sure enough, the last BO I see is ‘update’ and the tranID is still 0.

Am I missing something here? The system obviously generates a unique/sequential nonconf number, but I can’t find any evidence of that value in my trace, so no idea how I’ll pull the number with a BPM.

As always, thank you for reading.

I have mine on a Standard DD and the TranID has a value there.

In Data Directive - In Transaction

var SourceRow = (from r in ttNonConf where r.Company==Session.CompanyID && r.RowMod==“A” select r).FirstOrDefault();
if(SourceRow != null)

{
InfoMessage.Publish(SourceRow.TranID.ToString());
}

Thanks, Greg. I’ll have to do some homework on data directives, I’ve always done everything through method directives
.

I had a bunch of BAMs in E9 and the conversion process put them all in DDs, so I just am following what Epicor did.