function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RiyajRiyaj 

How I use All Apex Classes in another development Account?

Hi.

I am using now sample Development Account name "AdminSample".. I already done all the Apex classes in this Account. I m also use another Developer Account the name of  "AdminOrginal".. Now I wanna to Copy and paste the All the Apex Classes from AdminSample to AdminOrginal... how to transfer the Apex Classes one to another? pls anyone give me brief step by step process??/

 

Regd

Riyaj

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

You can deploy by using below mention process:

1. By using ChangeSet.

2. By eclipse Force.com IDE.

3. Salesforce ANT.

4. by creating Managed or Unmanaged Package.

 

Through eclipse follow the below steps:

1) Export the classes from AdminSample

2) When they come into eclipse click project name.

3) Click src, right click on classes Force.com Deploy to Server

4) Enter email of AdminOrginal in Username and its password in Password and Security token in Security Token. Click Next button

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

All Answers

Navatar_DbSupNavatar_DbSup

Hi,

 

You can deploy by using below mention process:

1. By using ChangeSet.

2. By eclipse Force.com IDE.

3. Salesforce ANT.

4. by creating Managed or Unmanaged Package.

 

Through eclipse follow the below steps:

1) Export the classes from AdminSample

2) When they come into eclipse click project name.

3) Click src, right click on classes Force.com Deploy to Server

4) Enter email of AdminOrginal in Username and its password in Password and Security token in Security Token. Click Next button

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

This was selected as the best answer
RiyajRiyaj

Thanks is working..

 

Is it can migrate Apex Classes Developer Ediiton to Enterprise Edition?

Navatar_DbSupNavatar_DbSup

Hi,

 


Yeah for that you have to use Either Eclipse or Package.

 

 

RiyajRiyaj

But when i m trying to deploy the displayed the error 75% test coverage..but i could not understand the test coverage? how to create this one? example my Apex Class given following. how to write the test case for this?

 

global class getUsername {

WebService static List<Contact> getUsernameFromContact() {

List<Contact> contactList = [SELECT firstname,lastname,Id from Contact WHERE Contact_Type__c = 'Teacher' ORDER BY Name ASC];
List<Contact> l1 = new List<Contact>();

if(contactList.size()>0)
{

for(Contact c : contactList){
Contact l=new Contact(Lastname =c.Lastname,Firstname=c.Firstname);
l1.add(l);
}
}


return l1;
}
}