Hi All,
I am trying to save the data received from the third-party system into Business Partner along with the Roles information using Document flow. Right now when we try to save data using CustomerPartyMaster BOD, it creates the Business Partner with the Role "Sold-To" only. Whereas I want to create a Business Partner along with the following roles via ION.
- Sold-To
- Ship-To
- Invoice-To
- Pay-By
I am aware that we can send the individual BODs to LN one by one if I know the CustomerPartyMaster record Id. Our scenario is a little bit different and tricky in the sense that from the third party, we get all the information (i.e. CustomerPartyMaster, ShipToPartyMaster, BillToPartyMaster, PayFromPartyMaster) in one single XML file. Now what I want is a way to process that single XML file using an ION document flow in the following sequence.
- Process the information given in the XML
- Create the CustomerPartyMaster record.
- Get the id of the newly created record from Acknowledge BOD.
- Process the information from XML fetched earlier once more to create ShipToPartyMaster, BillToPartyMaster, PayFromPartyMaster records in LN using the Id get from the previous setup.
So far I am able to do everything till step 3 because it is straight forward and standard ION thing. The problematic part is achieving step 4 because by the time the CustomerPartyMaster record created and Id received in the Acknowledge BOD step, I lose the information contains in the XML; hence unable to process anything or create records for roles based on the XML data received in the first step.
The ultimate goal is to use either one document flow or a combination of multiple flows in order to successfully save the CustomerPartyMaster record along with the ShipToPartyMaster, BillToPartyMaster, PayFromPartyMaster records using the single XML file placed on an FTP server.
I looked around all the documentation and search the forums to find a suitable solution but so far not able to do that. Does anyone have any ideas?
Kind Regards,
Junaid