Hi,
Now, as per MS docs below , XSLT script in data management is being deprecated from the platform version 10.0.30.
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/get-started/removed-deprecated-features-platform-updates#xslt-scripting-in-data-management
MS has clearly mentioned that X++ based solutions needs to be applied instead.
-------------------------------------------------------------------------------------------------
Current Scenario :- 10.0.28 platform version.
We have a Bank response file (flat file) that we get from the bank for the payment approval/rejection notification and based on this file, we mark the paymentstatus in the payment journal lines.
As per the current implementation, we have a custom entity created from LedgerJournalTrans table and used into Data Import project in the Data Management. We created the recurring integration end points where the above ER file (comes from the bank) is integrated to data management import project periodically and we have XSLT transformation applied to this data import project which then sends data to the entity and finally journal lines are getting updated.
-------------------------------------------------------------------------------------------------
My questions are
1. Can we just keep above implementation and just remove XSLT and write code of transformation in Data Entity methods itself? If yes, What should be the approach? What methods of the data entity can be used to read the flat file and transform the data before it can call to the actual data entity insert method?
2. Is it a good idea to write a custom service with all the transformation code and data insert directly to journal line table from the service itself and never use data entity? Let the exernal API calls this service endpoint to pass the flat file to it.
3. Another approach we are thinking of Electronic Reporting. We can create a ER model and format and what standard class we can use which accepts the files and pass it to this ER model and gives us the output records that later on can be inserted into the journal line table.
Experts - Please suggest what would be the best approach here?
Thanks & Regards,
Vikky