Notifications
Announcements
No record found.
Is there any code sample somewhere how to call electronic reporting from code?I have System.IO.MemoryStream object, but how could I use it and run a specific model mapping configuration on that stream (stream is created from XML file)? I saw that there is classes ERModelMappingDestinationRun*, but I am not sure how to use it.
Check gerImportStatement method of BankStatementImportBatch class, it does exactly what you want.
Hi Marija.todorovic,
You can use the method like this:
ERModelMappingDestinationRun::constructByImportFormatMappingId(<mapping id>, <integration point>).run();
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/er-apis-app73?toc=/dynamics365/commerce/toc.json
Please have a look at ievgen's blog:
https://ievgensaxblog.wordpress.com/2019/07/02/msdyn365fo-how-to-import-csv-file-using-electronic-reporting-part-5-run-import-from-x-code/
Hope this helps.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 559 Most Valuable Professional
André Arnaud de Cal... 464 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader