17.02.2010, 00:20 | #1 |
Участник
|
Customer import routine
yet another question
i have built a routine to bring it customer records into the CustTable and some other tables off of the CustTable which all works fine. but i am having issues bring into the address table for the customers, in version 4 this was simple, but noe these PartyTables seems to come into the mix as part of the Gobal address book. does someone have a routine for importing addresses or can point me in the right direction Thank you Damon |
|
19.02.2010, 12:36 | #2 |
Участник
|
Hi Damon!
You should simply specify address value to correspondent CustTable fields and call CustTable.insert() method. If you look into this method you will find the code which is caring about Global address book data consistency: X++: // Check if not associated to Party if (!this.PartyId) { // Create a Party entry for customer this.PartyId = DirParty::createPartyFromCommon(this).PartyId; } else { DirParty::updatePartyFromCommonInsert(this.PartyId,this); } Best Regards! |
|
Теги |
address, custtable, import |
|
|