DMF – D365 F & O

  • DMF – D365 F & O

    Posted by DSC Communities on September 13, 2019 at 5:04 pm
    • Srikanth Konda

      Member

      September 13, 2019 at 5:04 PM

      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).

      Sample code:
      NumberSeqRecordFieldHandler::enableNumberSequenceControlForField(
      Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā  this, fieldNum(customEntity, PurchId), PurchParameters::numRefPurchId());

      ——————————
      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.Ā 

      ——————————
      vishal Dhawgaye
      Hitachi Solutions America, Ltd.
      ——————————
      ——————————————-

    • Glenn Linaa

      Member

      September 26, 2019 at 2:29 AM

      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.

      ——————————
      Glenn Linaa
      Tasklet Factory Mobile WMS
      aalborg, Denmark
      ——————————
      ——————————————-

    DSC Communities replied 6 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘DMF – D365 F & O’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

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!