Method | Argument | Explanation |
---|---|---|
startMessageAsync | Starts a message directly in a separate background process. | |
messageRecid | The RecId of the message to be run. | |
BisArgs |
The arguments for the message. For example, to set the record. |
|
showMessage (default=true) | Shows the info messages as created by the message run. | |
startMessageQueueAsync | Starts the outbound queue directly in a separate background process. The outbound queue is started for a specific record only. Note: You can only use this method for EDI. |
|
eventlogRecid | The RecId of the outbound queue record to be run. | |
showMessage (default=true) | Shows the info messages as created by the outbound queue run. |
Example
[PreHandlerFor(classStr(SalesInvoiceJournalPrint), methodStr(SalesInvoiceJournalPrint, printJournal))]public static void SalesInvoiceJournalPrint_Pre_printJournal(XppPrePostArgs args){int test = 1;Set journalList = Args.getArg('_journalList');SetEnumerator se = journalList.getEnumerator();while (se.moveNext()){Common journal = se.current();BisMessageTableEventLog eventlog;while select firstonly eventlogwhere eventlog.eventTableId == journal.tableId&& eventlog.eventRecid == journal.recid&& eventlog.eventStatus ==BisTableEventStatus::New{BisRunMessageASync::startMessageQueueAsync(eventlog.RecId, false);}}}
Related to | Notes |
---|---|
Develop custom code |
  |
Run message from action menu item |
  |
Run message |
  |