Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Monday, December 25, 2017

Code to print attachment Notes in AX 2012

Hi,

static void Job75(Args _args)
{
    DocuRefSearch        docuRefSearch;
    SalesQuotationTable     quotationTable;
    quotationTable = SalesQuotationTable::find('CBI-000039');
    docuRefSearch = DocuRefSearch::newTypeIdAndRestriction(quotationTable, 'note', DocuRestriction::External);
           
    //    projActivityCostSummaryTmp.Notes                = Docu::concatDocuRefNotes(docuRefSearch);
    print Docu::concatDocuRefNotes(docuRefSearch);
    print DocuRef::find(quotationTable.dataAreaId,quotationTable.RecId).Notes;
    pause;
}

Regards

No comments:

Post a Comment

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...