Custom logic execution after completion of AIF document process

updateNow  – AXD document class method

Recently I have had the requirement to update some fields in my AIF document table after the document process completes. So to achieve the business requirement I have used UpdateNow method of ‘AXD‘ document class. UpdateNow method gets class when the document process completed and it can be used to call custom business logic after the completed of document import/export e.g. validate the custom log of import process etc.

Here is the sample code which I have used

public void updateNow()
{
CAX_C7AccOrderStageHeader accountingOrderHeader;
;
super();
accountingOrderHeader = axbc_AccOrderStageHeader.cAX_C7AccOrderStageHeader();
CAX_C7AccOrderStageHeader::updateCounterPartyOnLines(accountingOrderHeader);

}

 

Advertisements