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?