web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Customer Payments with ISO20022 camt.054

(0) ShareShare
ReportReport
Posted on by 40

I installed the hotfix for ISO20022 camt.054 to import customer payments in R3. It works perfectly.  I would like to run it unattended (without the two dialogs).   I extended the ISO subclasses (CustInPaym_ISO20022_W, CustInPaym_ISO20022_CAMT54_W) in order to create any method overrides needed and also to preserve the version with dialogs.  In a job I created to test I have the three values needed in place of the dialogs.  I use the CustInPaym::construct method in the job.  I then set the two values (JournalNum and PayMode).  This was easy to supply by calling two set methods in the instantiated CustInPaym.  However the third (Filename) does not have a set method I can call.  I do not know if there is a way for me to supply the FileName value.  I would appreciate a nudge in the right direction and/or any comments.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • blujay712 Profile Picture
    40 on at

    Wow!  Your answer hit me like a brick.  You are so right.  At some point in time further abstraction will approach a diminishing return.  I have done exactly what you suggested and all is fine and working. Thank you very much ievgen for your quick responses and for saving me time.

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    It's 2012, you don't need to extend anything, just open that class and add new method.

  • blujay712 Profile Picture
    40 on at

    Thank you ievgen for responding.  I don't know how to provide the filename to the subclass I extended.  I don't believe I can overload the Run method (nor any method) in x++.  I'd like to do as you suggested and write a setFilename method in my extended subclass but I don't know how to pass the fileName string. I am including my job to see if you have a thought on how to set me in the right direction. Thanks very much again.

    CustInPaym

         CustInPaym_ISO20022_W

               CustInPaym_ISO20022_CAMT54_W

                     CustInPaym_ISO20022_CAMT54_W_Unattended   //  my extended subclass

    static void ACH_unattended(Args _args)   // my job

    {

      CustInPaym     custInPaym;

      //Dialog       dialog = new Dialog("@SYS18228");

      //DialogField   dialogPaymMode;

      Filename       fileName;

      //dialogPaymMode = dialog.addField(extendedtypestr("GT_ACHWIRE"));

      //dialogPaymMode.label("@SYS21698");

      fileName = "C:\\Users\paco\\Desktop\\ACHProcessing\\IncomingFiles\\wellsfargo.20190108050912666.xml";

      //if (dialog.run())

      //{

          custInPaym = CustInPaym::construct("GT_ACHWIRE");

          //custInPaym.getLast();

          custInPaym.setJournalNum("GT_JBN4790");

          custInPaym.setPaymMode("GT_ACHWIRE");

          //custInPaym.saveLast();

          //if (custInPaym.prompt())

              custInPaym.run();

    }

  • Mea_ Profile Picture
    60,286 on at

    What stops you from implementing your own setFilename method?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Volodya Profile Picture

Volodya 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans