Hi everyone
My AIF knowledge is fairly bad, so would appreciate all the help I can get.
When we try create create a new vendor via AIF in company A, if a vendor with the same name already exists in company B, you'll get an error stating that the record already exists.
When you do the same thing from the front end (ie. create a vendor with an existing name from the UI), it'll prompt you and ask whether you'd like to create a new org, or select an existing one.
If you choose to create a new one, then a new vendor will be created in that entity, with a new DirPartyTable record, and you can add new addresses and new contact info etc.
How do you cater for the same functionality in AIF?
I've tried to (in code) check whether the party record already exists, and if it does, create a new one. This works.
I've been able to steal some of the address details off the vendor before changing it's party id, and create a new address. This works.
I can't get the contact info though.
Perhaps my strategy is wrong all together.
So, my question is, in this situation, how could i create new contact details with the info that comes from the xml file. ie. How do I access it in AxVendTable?
The bigger question is, if I'm doing this wrong, what is the correct solution?
Thanks