Hello, I want to import the purchase order header and lines information into D365FO system for Insert/Update and am aware that there is a standard composite entity which does that, but with limitation of only XML file types. I want to import data from Excel files. I tried to create a custom data entity with the PurchTable and PurchLine tables. As usual, the export works smoothly but the import doesn’t for obvious reasons. The system validates the purchId from PurchLine table and will not find a match and throws an error.Ā Can someone help me what methods I can use for following. For, new PO header and lines I want to insert data into the header first and then attempt to insert in the line.
Thanks Srikanth
—————————— Srikanth Konda
——————————
Chaitanya Golla
Member
September 15, 2019 at 10:54 PM
Hi,
You can implement the numbersequence code either in method initValue (or) post-event handler of method mapDataSourceToEntity of your custom entity. While importing the data specify the value for PurchId as 1,2(on header) and so on(also on the purchase order lines accordingly).
—————————— Regards, Chaitanya Golla Lead Architect —————————— ——————————————-
vishal Dhawgaye
Member
September 25, 2019 at 5:16 PM
Hi Srikanth,
If you are bringing purchase orders from legacy system and If your file already includes ‘purchId’, then your can make your number sequence as ‘manual’. you can do that from number sequence setup and entity will create purchase order with Id in file. If you planning to create your own purchId and want to populate it from header. you have to create composite entity, refer ‘SalesOrderEntity’ for the same.Ā
I am not sure this is what you want, but during the import you can go to the map for the header entity and change the purchaseordernumber to auto. This lets the import auto generate the PO number and I think it also align the lines to the new number.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!