+ Start a Discussion
Binu 8Binu 8 

Few doubts in SFDC

Hi Team,

I have few doubts in salesforce. Please clarify me ASAP.

    1. Does salesforce support multi tenant applications? Means I have created a a vehicle related application in SFDC.
        I want to handle this app with two seperate companies (Company A and Company B). The data and every activity should be separate.
        Is there any simple way in SFDC or shall I do manually?
        
    2. Can I create dynamic objects? Means Need to create an object with fields in run time.Is that possible?
    
    3. Let me know the pricing details of SFDC? If I develop or maintaining  a small app I can pay less cost Otherwise my app is big
     I can Pay huge amount. Could you please clarify the pricing in SFDC?
Ajay K DubediAjay K Dubedi
 
Hi
1) Yes Salesforce support multitenant applications. Use the below link to know more about Salesforce Multitenant architecture.
 
https://developer.salesforce.com/page/Multi_Tenant_Architecture
 
2) Yes we can also do that by using Schema.sobject functionality of Salesforce it is a good one provided by Salesforce.
 
3) Pricing of salesforce is based upon your needs refer the link for more information:
 

http://www.salesforce.com/in/crm/editions-pricing.jsp
ManojjenaManojjena
Hi Binu ,

Ajay and chamil has already given your answer .One thing  I will say to your question number two .I think you are asking about DDL .Can we create object and add fields to the object from apex code at run time .

Yes you can create  with the help of metadata API .Which salesforce has already providing .

You can check below link which will help .

http://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/  

Also you can go to setup>Develope>API>click on the link generate metadata API >

which will give you a xml file which you need to parse ,There is a button you can find if you will click on pex classes .Once you will cick on the button you need to choose the xml file and parse which will generate a class in your org with help of that you can do DDL .

Please let me know if it helps !

Thanks 
Manoj

 
Binu 8Binu 8
Hi Team,

Thakns for your comments. But I have some confusions in multitenant apps. Could you please provide any example app or can I follow the reply of Chamil about Multi tenancy App.That is about package installation in multiple instances
(https://developer.salesforce.com/page/An_Introduction_to_Packaging" target="_blank). Please clarify me.
 
Chamil MadusankaChamil Madusanka

1. Salesforce platform has the multi tenant architecture . You have asked about the multi tenant application. You can develop an application and deploy it in multiple instances (orgs). Read salesforce packaging: https://developer.salesforce.com/page/An_Introduction_to_Packaging (https://developer.salesforce.com/page/An_Introduction_to_Packaging" target="_blank)
2. If you mean, dynamically creating metadata of a object with fields - The answer is no
    If you mean, dynamically creating record values of object with fields - The answer is Yes  refer: http://forceguru.blogspot.com/2011/08/inserting-sobject-dynamically-in.html (http://forceguru.blogspot.com/2011/08/inserting-sobject-dynamically-in.html" target="_blank)
3. Refer: http://www.salesforce.com/crm/editions-pricing.jsp (http://www.salesforce.com/crm/editions-pricing.jsp" target="_blank) Or contact Salesforce.

If you get the answer, please mark it as the correct answer. It will be a help to others who are facing the same problem later.