Write to SQL table from within BPM/Directive

,

Yeah
This

      Ice.Diagnostics.Log.WriteEntry($"[ Updating FirmRelease ] OrderNum: {row.OrderNum} - OrderLine: {row.OrderLine} - OrderRel: {row.OrderRelNum}");

Writes to the AppSarver’s Envent Log

And this

Action<string> WT = (msg) =>
    {
        Epicor.Hosting.Trace.ServerLog.WriteTraceMessage(
        "trace://ice/custom/MyProject",
        "MyAwesomeBPM",
        () => msg
        );
    }
};

Will write tot eh ServerLog (when enabled via trace flag)

3 Likes