Hi first time poster here. We currently use data directive to send some automated emails daily. The format of these emails makes it pretty hard to read. Is it possible to send the information in a table format with headers? In the example below the headers would be (Resource Desc, Job Num, Part Num, Needs Setup Y/N). I have been attempting to code this my modifying the custom code to format the way I want but I can’t seem to figure it out. I am not receiving any syntax errors and I am not adjusting any of the LINQ portion of the code. When I run the code the data output is blank. Is it possible to code a table format using Data Directives?
ex.
Building 1 Priority 1:
4711 (11) DOOSAN 4500 18" MAX 089411 4900338-01
4504 Okuma M4 123456 V562DV-1
4702 Doosan 2 654132 V562M-5 Needs Setup
4712 (12) DOOSAN 4500 18" MAX 893518 FAB0750105
4710 (10) DOOSAN 4500 18" MAX 561651 4900664-00
Hi
You can create a BAQ that contains the data that you want and then within Custom Code execute it into a temporary dataset then create an HTML email including a table
Currently we have this setup in data directives. Here is a portion of the C# code that generates formats the data currently and then we use the Send Email command.
Ah, we email out through via a c# code block similar to the examples above. We also have on premise environment which let us install an email server alongside Epicor to handle them. <–(I was not around when the emailer was set up, not sure if you could still C# code and run through Epicor’s built in or not).
AFAIK, the built in emailer doesn’t have any additional settings - however I’ve never dug around in the actual Email method directive, may be able to grab it enroute and reformat it through a bpm there (this is speculation, never dug in before)
We use a Data Directive to send a ship ack email. We load the info by html in C# in the callContextBpmData.Character fields and reference those in the Email Template.
This is a simple table format by placing the html in the callContextBpmData.Character fields inside the C# code.
We have an Execute Custom Code widget where you define the table grid lines with the tracking fields, part number, etc into callContextBpmData character fields.
And here is the Send Email example of html- Email. Html example.docx (15.4 KB)