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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Automate 'Import Payments' functionality in Customer Payment Journal.

(3) ShareShare
ReportReport
Posted on by 2,114
Hi Techies -
 
We've a requirement where customer wants to automate the 'Import payments' functionality.
Details as below -
 
Standard process to load CAMT054 type file to create payment lines -
 
 
 
 
This is a standard functionality and it will read the CAMT054 type file and creates the payment lines and settle them.
 
Proposed design - A new flat table is created and customer will push this file contents in Memo field of the table. We need to create a new batch job that will read the details from fileContent field and trigger a same logic that above dialog executes after browsing the file. After multiple debugging and exploring we've found that it is using the standard ER framework and ER classes to finally uses CustomerPaymentJournalLine entity to create the payment lines. 
 
We're trying to get the entry point of the standard logic that reads this file so that we can try calling the same from our custom code.
Classes checked are -
CustInPaym
ERImportFormatDataSourceContract
ERImportFormatDataSourceContractUIBuilder
CustVendPaymAdditionalParamsHelper
 
Alternate way if this isn't feasible we've thought to write a custom logic to create payment lines by reading from the file contents from flat table and settle them.
If anyone has managed to trigger above standard logic from custom code, your insights will be very helpful. Thanks in advance!
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at
    Hi Sangram,

    I haven't done this myself before. You can start a trace or debugging session to check what exact logic is called when performing this task manually. 
    The dialog is started from a menu item that will collect some settings and you can add the file. After closing the dialog, it will call specific logic that the trace or debugger can reveal for you. Then you can try to interact with that logic.
  • Sangram Shinde Profile Picture
    2,114 on at
    Thank you for reply Andre -
     
    It is calling below code - 
     
     
    And after above call - it's going in some C# code it seems. below method OnUploadCompleted(). I am not sure can we use it in custom class.
     

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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans