Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Centralized Location for EFT File

$
0
0

Hi

We had a customization in AX 2012 R3 where we added a parameter in Accounts Payable parameters and modified the class which was generating the EFT file to read that parameter and save the file at provided location.

I am trying to do the same customization in D365 and have found that there is a class CustVendPaymERExport which has a member variable fileDestination of type ERIFileDestination in addition to erFileName which is of type str.

I tried to write the following code in extension class but at the time of generating EFT file it is getting error 'Object reference not set to an instance of an object'.

[ExtensionOf(classStr(CustVendPaymERExport))]
final class CustVendPaymERExport_Extension
{
    public void run()
    {
        str filePath = @"C:\Temp\";
        erFileName   = erFileName + "_HAROON";
        showDialog   = false;
        
        fileDestination.newFileStream(filePath);
        
        next run();
    }
}

Can anyone help what is wrong with this code.


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>