Announcements
No record found.
Kind regards, Adis
If this helped, please mark it as "Verified" for others facing the same issue
Keep in mind that it is possible to mark more than one answer as verified
Hi,
Since you are creating journals from Logic App, you will most likely be using a data entity. You can take inspiration from the sample code below. Please note that this will always auto-submit the workflow for these three journals.
If you need to differentiate between records created via data entity and those created from the standard UI, you should add conditions in the code.
In this example, taken buffer of LedgerJournalTable buffer, but you can simply use this.
LedgerJournalTable
[ExtensionOf(tableStr(LedgerJournalTable))] final class LedgerJournalTable_Table_Extension { public void insert() { LedgerJournalTable ledgerJournalTable = this;
next insert();
ttsbegin;
if(ledgerJournalTable.JournalName == ‘JournalNmae’))// add other 2 journals name here { Workflow::activateFromWorkflowType(workflowTypeStr('LedgerDailyTemplate'), ledgerJournalTable.RecId, 'auto submitted', NoYes::No, curUserId()); ledgerJournalTable.WorkflowApprovalStatus = LedgerJournalWFApprovalStatus::Submitted; ledgerJournalTable.update(); } ttscommit;
}
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 653
André Arnaud de Cal... 463 Super User 2026 Season 1
Syed Haris Shah 308 Super User 2026 Season 1