Posts

Showing posts from February, 2022

Upload CSV file through SysOperation Framework

Image
 In this blog I will discuss how can we import records from CSV file in custom table in D365FO. Create Classes Contract Class  Controller Class Service Class UIBuilder Class Contract Class [     DataContractAttribute,      SysOperationContractProcessingAttribute(classStr(Ax_SysOprUIBuilder)) ] class Ax_SysOprContract  {     System.IO.Stream            stream;     Filename                            filename;          /// <summary>     /// set <c>System.Io.Stream</c>     /// </summary>     /// <param name = "_stream">for file uploading</param>     /// <returns><c>Stream</c></returns>     public System.IO.Stream parmStream(System.IO.Stream  _stream = stream)     {     ...

Call new Report/Design for existing Print management report in D365fo

Image
Duplicate the PurchPurchaseOrder standard Report as  PurchPurchaseOrderReport. Go to printMgmtDocType class and copy the event handler delegate method called getDefaultReportFormteDelegate. Create new class "PrintMgmtDocDelegatesHandler" and paste the EventHandler. Below is the reference code. To execute the report different design per each legal entity class PurchPurchaseOrderDelegate {        [SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]     public static void PrintMgmtDocType_getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)     {         PrintMgmtReportFormatName formatName = sfcPurchPurchaseOrderDelegate::getDefaultReportFormat(_docType);         if (formatName)         {             _result.result(formatName);         }   ...

Copy report design from ax 2012 to D365fo

Image
1. From Ax report designer copy design RDLC. 2. Copy RDLC of report design. 3. In D365 Create report design and open RDLC of design and paste the RDLC of ax2012. the design        will be copied. 4. Design is copied in D365fo NOTE: But this design could not be deployed because of VS version difference, So create another design and copy all the design elements and paste in the newly design and then deploy.