import contacts from excel

i need to import contacts in sales and marketing / common / contacts with all field like name , birthday , gender ,function , department ,time , manager , loyalty etc from excel using x++ jobs.

in my excel one column name is ( contact for party ) that will come from cust account , vend account , prospects account ,

i trying to get this by this method

if(conPeek(readCon,3) != “”)
{
contactPerson.ContactForParty = VendTable::find((conPeek(readCon,3))).RecId;
}

but i am not able to get party name for vendor account

please help me

thank you.

Why are you trying to re-implement it by yourself if there already is a standard entity for DIXF?

Hi martin thanks for reply .but we dont have second option .

Then you’ll have to debug your code.