+ Start a Discussion
Rodolfo CalvoRodolfo Calvo 

How to install my visualforce tab in another SF account?

 Hello team,
I develop an app with a visualforce page and controller, how can I install my app in another salesforce account? Is there any easy way to do this?
 
Thanks in advance
Anuj PatelAnuj Patel
Hi,
Can you elaborate it further?

If you want to have that in an ORG associated to yours then you can use Migration tools.

If it is totally different and non-connected ORG then you need to used package.

Please give more detials so that I can guide you better.




Please mark it as the best answer if you find it useful.

Thanks,
Anuj.
 
Rodolfo CalvoRodolfo Calvo
Let me explain:
I developed an app (visualforce page and its correspondent controller), this app is for offering a service to salesforce companies, this service it will be execute it by me, so, salesforce companies don’t need to do anything but me. I will just log in with customer credentials and execute my service and that’s it. 

Thanks in advance. 
Anuj PatelAnuj Patel

Hi @Rodolfo
I ​Got it now. You need to create a Package as you have to take it to the other ORG, As you want to login through customer credential in Customes's ORG, you need to install your stuff in customer ORG. Managed package will allow you all the control over your stuff. 

You will get more idea from follwoing link,
https://help.salesforce.com/apex/HTViewHelpDoc?id=sharing_apps.htm


Please mark it as the best answer if you find it useful.

Thanks,
Anuj.




 
Rodolfo CalvoRodolfo Calvo
Do I need to install my stuff in customer ORG? 
What this means exactly? I have to create a visualforce page and the controller into customer's?

Thanks! 
Anuj PatelAnuj Patel
@Rodolfo

You need to create a Package with all the components and you will install that component into Customer's ORG. You do not have to create anything because it is already there.

Create a package in your ORG, Upload it to AppExchange and customers can directly download from there and Install it.

Please mark it as the best answer if you find it useful.

Thanks,
Anuj.

 
Rodolfo CalvoRodolfo Calvo
That's the problem. If customers download the "package" and install it in theirs ORG, my service my fail because they will do it, so if this happens there will no service. The idea is that I get into their accounts and do it by me. 
Rodolfo CalvoRodolfo Calvo
Another issue, if I create a package, It shows me an error at uploading 
No test methods found in the Apex code included in the package. At least 75% test coverage is required. Does this mean I have to re-write all code again?
Anuj PatelAnuj Patel
Hi,

You still can be able to do what you wan to do. You can always monitor your package in customers ORG and you have to discuss all of those issues while someone wants your package in their ORG.


Also, for your second question, you dont have to write the entire code but you have to write test classes for your relevent components. I have added few important links that will help you create test classes.

https://developer.salesforce.com/page/An_Introduction_to_Apex_Code_Test_Methods
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_test.htm
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_best_practices.htm



Please let me know if you have more questions. 

Please mark it as the best answer if you find it useful.

Thanks,
Anuj.