Wednesday 19 August 2015

What are Custom Objects in salesforce?

Custom Objects

Custom objects are database tables that allow you to store data specific to your organization in salesforce.com. You can use custom objects to extend salesforce.com functionality or to build new application functionality.

Once you have created a custom object, you can create a custom tab, custom related lists, reports, and dashboards for users to interact with the custom object data. You can also access custom object data through the Force.com API.

what is difference between sales cloud and service cloud?

Comparison table for Sales Cloud and Service Cloud functionality

Difference between Sales Cloud and Service Cloud
  • "Sales Cloud" refers to the "sales" module in salesforce.com. It includes Leads, Accounts, Contacts, Contracts, Opportunities, Products, Price books, Quotes, and Campaigns (limits apply). It includes features such as Web-to-lead to support online lead capture, with auto-response rules. It is designed to be a start-to-end setup for the entire sales process; you use this to help generate revenue. While “Service Cloud" refers to the "service" (as in "customer service") module in salesforce.com. It includes Accounts, Contacts, Cases, and Solutions. It also encompasses features such as the Public Knowledge Base, Web-to-case, Call Center, and the Self-Service Portal, as well as customer service automation (e.g. escalation rules, assignment rules). It is designed to allow you to support past, current, and future clients' requests for assistance with a product, service, and billing. You use this to help make people happy.
  • Sales Cloud Implements Sales and Marketing while Service cloud implements Salesforce Knowledge.
  • Sales Cloud ,A great solution for small and value oriented mid-sized sales groups that want to rapidly and cost effectively deploy Salesforce While Service Cloud provides Customer Support to the Clients and giving you the tools to provide a better customer experience for your clients.
  • Sales Cloud gives you the ability to open Cases (issues) and relate them to Accounts, Contacts; etc. While The Service Cloud is a superset of Sales Cloud, meaning you get everything that is in Sales Cloud PLUS some other features.
  • When we develop product in force.com for sales then it comes in Sales Cloud Ex: - Account, Contacts, and Lead. While when we want to provide some facility and also provides support to the clients then it comes in Service Cloud. Ex: - create cases is the example of Service Cloud in which client write his problem into cases instead of call.

Explain about relationships in salesforce?

We have mainly two types of relationships
1. Lookup relationship
2. Master detail relationship

1. Lookup relationship:-


  1. Up to 25 allowed per object
  2. parent is not a required field
  3. No impact on security and access
  4. No impact on deletion of parent 



2. Master detail relationship:-


  1. Master Detail relationship is nothing but Parent child relationship. 
  2. Master represents Parent and detail represents Child. 
  3. If Parent is deleted then Child also gets deleted. 
  4. Rollup summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records. Up to 2 allowed per object.
  5. Parent field on child record is required. 
  6. Access to parent determines access to children. 
  7. If we Delete parent automatically deletes child. 
  8. One master detail relationship cannot be the parent of another. 
  9. Lookup field on page layout is required.

3. Many – to – Many relationship

Lookup and Master detail relationships are one to many relationships. 
We can also create many – to – Many relationship by using junction object. 
Junction object is a custom object with two master detail relationships.
Junction object can't be deleted if we are having rollupsummary fields.

What is an App in Salesforce?

An app is a group of tabs that works as a unit to provide a functionality.

We can switch between Apps using force.com drop down menu.


Monday 17 August 2015

What is custom label in Salesforce?

Custom labels are custom text values which stores 1000 characters long data in it.

When to use custom label?
1. Custom labels are used whenever large amount of data needs to be displayed in a visualforce page or in force.com sites.

2. Custom labels are custom text values that can be accessed from apex codes and visualforce pages.

3. Custom labels are also used if we need to display multiple languages in same page we need to go to custom labels instead of hardcoding.

eg:- If i am having a force.com sites which is having multiple languages in the site. Then i will first language language translation apex class and then add custom labels based on languages. If i select my language as English in force.com site it will displays text as English. If i select my language as French then it will displays french related text in the force.com site.

4. We can create 5000 custom labels for an organization.

Syntax:-

<apex:outputLabel value="{!$Label.CustomLabelName}"/>


Sample Code:

<apex:page standardController="Account" extensions="sample">
<h1>Example for Custom labels</h1>
<apex:outputLabel value="{!$Label.Sample}"/>
</apex:page>




What are Call outs in salesforce?What is a Callout method? How does it invoke, how many methods available in Classes and Triggers?

Callouts are mainly used to invoke the External services HTTP or web services.

In simple words if we want to connect to external system we need to use callouts.

Apex callout enables you to integrate your Apex with an external service by making a call to an external Web service or sending a HTTP request from an Apex script and then receiving the response.

Apex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services).

Tcs Salesforce interview questions

Tell us about your projects that you have did?

What is your role in the project?

Did you ever interacted with client?

Describe one scenario where you got struck up with Governor Limits and how do you overcome it?

What are Relationships in Salesforce?

Do you worked with Data Migration? 


Roll-up summary related questions?

Difference between sales cloud & service cloud? 


Tuesday 11 August 2015

How to Set up Multiple Currencies in Salesforce

Activate Multiple Currencies
Step 1
Contact your Salesforce account representative and initiate a request for the currencies to add to your platform. You will need to provide your Salesforce Organization ID, the default currency stamp for your platform and confirmation that you have the authority to initiate the request. The Salesforce staff enables the additional currencies on the specified deployment.

Step 2
Log in to Salesforce and open the Setup menu for your organization.

Step 3
Click the “Company Profile” option, and then click “Manage Currencies.” The Currencies screen opens.

Step 4
Click “New” in the Active Currencies section to open the New Currency dialog box.

Step 5
Click the “Currency” drop-down menu, and then click the ISO code for the desired currency to add. The new currencies added by the Salesforce support team will be displayed in this list.

Step 6
Type the conversion rate used by your corporate currency in the Conversion Rate box.

Step 7
Select the number of decimal points to show when displaying currency amounts.

Step 8
Click “Save.” The new currency is activated on the Salesforce platform.

In order to activate and use multiple currencies in Salesforce, first, your organization must make a request to Salesforce to add additional currency options to your company’s Salesforce deployment. The Salesforce support team enables the additional modules, and then notifies your organization that the additional currency options have been installed. Once they are available, you can activate the new currencies in the Setup tool. Activate multiple currencies for the organization and configure the default corporate currency in the Manage Currencies screen. Users can also set their personal currency preferences in their own account settings.

Company Currency Preferences
Step 1
Log in to Salesforce with administrator credentials, and then open the Setup menu for your organization's platform.

Step 2
Click “Company Profile,” and then click “Manage Currencies.” The Currencies screen opens.

Step 3
Click the “Change Corporate” option, and then click the “Currency” drop-down list. Click the currency to enable as the default. Click “Save.” The default currency for the organization is changed.

Personal Currency Preferences
Step 1
Click the “Down” arrow next to your username on any page of the Salesforce application to display your Account menu.

Step 2
Click the “My Settings” or “Setup” option, depending on the option that appears for your account. Your Settings menu opens.

Step 3
Click the “My Personal Information" option, if you selected “Setup" in the previous step. Click “Personal Information” to open your Personal Settings page. If you clicked “My Settings" in the last step, click “Personal" in the menu, and then click “Advanced User Details” to open your Personal Settings page.

Step 4
Click the “Edit” option to open the form in Edit mode.

Step 5
Click the “Currency” field, and then select the new currency. Click “Save” to save your settings.

What are governor limits in salesforce??

Governor limits are run time limits enforced by the Apex run time engine since Apex runs in a shared, multi tenant environment, the Apex run time engine strictly enforces a number of limits to ensure that code does not monopolize shared resources.


Types of limits that Apex enforces are resources like memory, database resources, number of script statements to avoid infinite loops, and number of records being processed.

If code exceeds a limit, the associated governor issues a run time exception.

For more information please refer to the link:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm

If you need to have much more detail explanation
eg:-
If you are creating vf page and apex class, you are using more number of soql queries may lead to exceedd Governor limits.

So, you need to plan according to your requirement. Sometimes it is better to write helper class and call that class in triggers to avoid Governor limits.