Create All employees as vendors

create all employees as vendors,

Can any one help me please

Are you expecting code for the creating all employee as Vendors ???

i want to convert all employees into vendors in c/al code format

can you please help me

You can check how contacts are created as vendors and customers as reference…

I have written it somewhere as follows let check whether it is useful for you or not

Create function in Employee Table

IF NOT Vendor.GET(“No.”) THEN BEGIN

Vendor.INIT;

Vendor.“No.” := “No.”;

Vendor.INSERT;

END;

Vendor.Name := COPYSTR(“First Name” + ’ ’ + “Middle Name” + ’ ’ + “Last Name”,1,50);

Vendor.Address := Address;

Vendor.“Address 2” :=“Address 2”;

Vendor.City := City;

Vendor.“Post Code” := “Post Code”;

Vendor.“Vendor Posting Group” := “Emp Posting Group”;

Vendor.“P.A.N. No.” := “PAN No”;

Vendor.“Global Dimension 1 Code” := “Global Dimension 1 Code”;

Vendor.“Gen. Bus. Posting Group” := ‘DOMESTIC’;

Vendor.“VAT Bus. Posting Group” := ‘NOVAT’;

Vendor.MODIFY;

Modify the code according to your requirement …