2-Epicor BPM Custom Code Examples - Create Journals - GingerHelp
2-Epicor BPM Custom Code Examples - Create Journals - GingerHelp
C R E AT I N G AU TO M AT I C
JOURNAL ENTRIES VIA
BPM
ADAM ELLIS · JULY 16, 2020
// Custom Code
//////////////////////////////////////////////////////////
var jrnGrp = ServiceRenderer.GetService<Erp.Contracts.GLJr
var jrn = ServiceRenderer.GetService<Erp.Contracts.GLJourn
https://www.gingerhelp.com/knowledgebase-epicor-erp/creating-automatic-journal-entries-via-bpm 1/6
5/16/24, 3:26 PM Epicor BPM Custom Code Examples - Create Journals — GingerHelp
// Add the credit (GL account and amount hard coded for
jrn.GetNewGLJrnDtlMnl(ref jrnTs, "MAIN", DateTime.Now.Ye
bool currCodeChanged;
jrnTs.GLJrnDtlMnl[0].GLAccount = "12345|AA|123|0";
jrn.ChangeGlAcct1(1, ref jrnTs, out currCodeChanged);
jrnTs.GLJrnDtlMnl[0].TotCredit = (decimal)100.00;
jrn.Update(ref jrnTs);
// Post it
string notAllPosted;
jrnGrp.CheckBeforePost(groupId);
https://www.gingerhelp.com/knowledgebase-epicor-erp/creating-automatic-journal-entries-via-bpm 2/6
5/16/24, 3:26 PM Epicor BPM Custom Code Examples - Create Journals — GingerHelp
Db.Validate();
txscope.Complete();
}
//////////////////////////////////////////////////////////
https://www.gingerhelp.com/knowledgebase-epicor-erp/creating-automatic-journal-entries-via-bpm 3/6
5/16/24, 3:26 PM Epicor BPM Custom Code Examples - Create Journals — GingerHelp
Hi, I want to create a new PO from a BPM but I don´t know how to call the Method and
send parameters. Can you help me?
PREVIOUS
NEXT
LET’S CHAT!
CONTACT US
https://www.gingerhelp.com/knowledgebase-epicor-erp/creating-automatic-journal-entries-via-bpm 4/6
5/16/24, 3:26 PM Epicor BPM Custom Code Examples - Create Journals — GingerHelp
GingerHelp is an
independent consulting
practice with no direct
© 2019 - 2023 GingerHelp,
affiliation with Epicor® or
LLC
Infor®.
https://www.gingerhelp.com/knowledgebase-epicor-erp/creating-automatic-journal-entries-via-bpm 5/6
5/16/24, 3:26 PM Epicor BPM Custom Code Examples - Create Journals — GingerHelp
https://www.gingerhelp.com/knowledgebase-epicor-erp/creating-automatic-journal-entries-via-bpm 6/6