If you’re coming from the sales order, you can query the jobprod table using SO/Line/Rel. There are a couple ways you can go about it; execute custom code and write a linq query and store those values in your call context data, this would allow you to include extraneous info using the standard email wizard/template. The other would be to do all that via custom code and define and send the email using c#.
Rob Bucek
Production Control Manager
D&S Manufacturing
301 E. Main St. | PO Box 279
Black River Falls, WI 54615
715-284-5376 Ext. 311
Mobile: 715-896-3119
rbucek@...
Visit our newly redesigned Website at www.dsmfg.com<
http://www.dsmfg.com/>
From:
vantage@yahoogroups.com [mailto:
vantage@yahoogroups.com]
Sent: Friday, January 8, 2016 3:52 PM
To:
vantage@yahoogroups.com
Subject: [Vantage] BPM for UnitPrice change in Sales Order Entry Epicor10
I have created a BPM to send e-mails whenever the Unit Price from a Sales Order entry is changed. (SalesOrder.Update)
The e-mail includes information like: SO#, Line#, PO#, Part#, new UnitPrice and so on.
The problem is that I also need to have in my e-mail the job number that is linked to that Sales Order.
Well, information about jobnum can be found within JobHead table.
Is it possible to include information in my e-mail from other tables (which are not in the list), if yes how do I include other tables?
I only have the following: ttHedTaxSum, ttOHOrderMsc, ttOrderXXXX, ttSelectedSerialNumbers, ttSerialNumberSearch, ttSNFormat, ttTaxConnectStatus
Is there a possibility to see the ttJobHead in there?
In the past we where using BAM(Vantage 8) but now it doesn't work so that's why I have tried to implement it with a BPM.
In the past with BAM, I had something like that in my .p file:
IF Mfgsys.JobHead.JobClosed<>true Then Do:
IF strJobs="" THEN DO:
strJob=Mfgsys.JobProd.JobNum.
strJobs=Mfgsys.JobProd.JobNum.
END.
IF strJobs<>"" THEN DO:
IF Mfgsys.JobProd.JobNum<>strJob THEN DO:
strJob=Mfgsys.JobProd.JobNum.
strJobs=strJob + ", " + strJobs.
END.
END.
IF strJob<>"" THEN DO:
IF intQty=0 and Mfgsys.JobHead.StartDate<>? then datStartDate=Mfgsys.JobHead.StartDate.
IF intQty=0 and Mfgsys.JobHead.StartDate=? and Mfgsys.JobHead.ReqDueDate<>? then datStartDate=Mfgsys.JobHead.ReqDueDate.
IF intQty=0 then intQty=Mfgsys.JobHead.ProdQty.
Thanks!
[Non-text portions of this message have been removed]