Thursday, October 16, 2014

Document Handling In Ax 2012

Document Handling In Ax 2012

static void CookBookEx20(Args _args)
{
    DocuRef     docuRef;
    VendTable   vendTable;
    ;
    vendTable = vendTable::find('3001');
    docuRef.RefCompanyId    =   vendTable.dataAreaId;
    docuRef.RefTableId      =   vendTable.TableId;
    docuRef.RefRecId        =   vendTable.RecId;
    docuRef.TypeId          =   'Note';
    docuRef.Name            =   'Imported';
    docuRef.Notes           =   "This Vendor was Imported";
    docuRef.insert();
}

No comments:

Post a Comment