Posts

Showing posts from October, 2022

Custom excel add in data entity on office menu in d365fo

 Form should implemetns the following class // Please check Custtable Form  logic  and for more complexity with template need to check LedgerJournalTransCustPaym form logic [Form] public class EMSChargebackBreakupDetails extends FormRun implements    OfficeIGeneratedWorkbookCustomExporter {  const str breakupLinesEntityOfficeId = 'BreakupLinesUnFilteredId';     const str breakupLinesFilteredEntityOfficeMenuId = 'BreakupLinesFilteredId';     OfficeGeneratedExportMenuItem filteredBreakupLinesEntityMenuItem;     OfficeGeneratedExportMenuItem unFilteredBreakupLinesMenuItem;  public void customizeMenuOptions(OfficeMenuOptions _menuOptions)     {        /* var dataEntityEnumerator = _menuOptions.dataEntityOptions().getEnumerator();              while (dataEntityEnumerator.moveNext())         {             OfficeMenu...

Get File stream and changes the content and upload file stream again

//Convert downloaded url to string   System.IO.Stream   memoryStream = File::UseFileFromURL(DMFStagingWriter::getDownloadURLFromFileId(_uploadedStatement));                     memoryStream.Position = 0;                     System.IO.StreamReader sReader = new System.IO.StreamReader(memoryStream);                     // Set file contentn string                     str  fileContent = sReader.ReadToEnd();                     container conOld = str2con(fileContent,"\r\n");                     str newFileContent,contentStr;                     int i;                     boo...