create vendor through X++

How to create vendor through X++ in Ax 2012

What is your AX version? Please always tag your AX version.
Have a look at \Data Dictionary\Tables\smmBusRelTable\Methods\relation2Vendor

Why are you not using DIXF?

Actually i want to create by job and including addresses,Contact information, financial dimensions, etc.

Still the same question is valid. If you don’t know how to write a job or DIXF stating point is the same.

Hi Kavya,

Create a Job:

static void createVendor(Args _args)
{
VendTable vendTable;

vendTable.AccountNum = ‘10001’;
vendTable.Name = ‘Vendor Name’;
.
.
.
vendTable.insert();
}

Add your required fields, whichever you would like to fill in related to vendors and execute this job.

Thanks,