Thursday, 11 October 2012
What is MVC Architecture of Salesforce?
Ans:-
This will be a very high level introduction to salesforce and its capabilities . In my opinion, the reason for salesforce to become so popular in a short duration of time is the fact that it is a cloud based application. The puts salesforce at a huge advantage over other extremely successful CRM tools like Siebel. The trend seems to be catching up and it is in someways alarming to see the pace at with Salesforce is capturing the CRM market. Being a Multitenant application, Salesforce is able to integrate new features directly into the customers application without asking for the customer to upgrade or install anything. No doubt there are a lots of issues that Salesforce still needs to address. Many of my colleagues have come across many bugs with Salesforce and furthermore it is evident that being a shared application, there a limitations in the flexibility that Salesforce can provide as compared to other legacy applications like Siebel. This is one of the main reasons why many companies are reluctant to make a switch to Salesforce. Security and the cost of the applications are other reasons. There have been instances of phishing attack on salesforce customers and also it is quite well known that swithing to salesforce could be heavy on the pocket for a small or medium size enterprise. All said and done it is an extremely promising technology and I wouldn't think twice about investing my time learning it. Plus I find the interface very user friendly and they are always coming up with new enhancements. My favorite aspect about Salesforce is the fact that it is documented really well ( perhaps because it is so new) and also the ideas and discussion boards are great with really talented developers and moderators. I would bet on salesforce to be the next big change in the CRM world atleast for the next few years.
What is the difference between a isBLANK and an isNULL?
Ans:-
Both same thing. The problem is that salesforce made isNULL but it could not check if a blank text field is null. So it used for work for most data types but not strings. So they invented IsBLANK that is capable of checking if string is empty or not. Remember however that even a space or colon is considered as not empty. Anyway in future it is always recommended that we use isBlank.
Both same thing. The problem is that salesforce made isNULL but it could not check if a blank text field is null. So it used for work for most data types but not strings. So they invented IsBLANK that is capable of checking if string is empty or not. Remember however that even a space or colon is considered as not empty. Anyway in future it is always recommended that we use isBlank.
What is the difference between a cross object formula and a roll up summary?
Ans:-
There are many but the main one ofcourse if that a cross object formula references fields of its parent records to perform various operation and return a result where as a roll up summary calulates the Count, sum,max, min of some fields in the child records. Also , a roll up summary is not actually calculated and stored in the database. It is calculated only at run time. Were as a formula is calculated and stored like any other field. There are a some more but these are the cream of the cake .
Thursday, 6 September 2012
Test Class?
What is Test Class?
Ans:-
To facilitate the development of robust,
error-free code, Apex supports the creation and execution of unit tests.
Unit tests are
class methods that verify whether a particular piece of code is working
properly.
Unit test methods take no arguments, commit no data to the database,
send no emails, and are flagged with the testMethod keyword in the method definition.
Test
methods cannot be used to test Web service callouts. Web service callouts are
asynchronous, while unit tests are synchronous.
Batch Class?
What is Batch Class?
Ans:-
A developer can now employ batch Apex to build complex, long-running
processes on the Force.com platform. For
example, a developer could build an archiving solution that runs on a nightly basis,
looking for records past a certain date and adding them to an archive. Or a
developer could build a data cleansing operation that goes through all As ccounts and
Opportunities on a nightly basis and reassigns them if necessary, based
on custom criteria.
Batch Apex is exposed as an interface that must
be implemented by the developer. Batch jobs can be programmatically invoked at
runtime using Apex.
1.
Start method-
global (Database.QueryLocator | Iterable<sObject>)
start(Database.BatchableContext bc) {}
2. Execute method:
global void
execute(Database.BatchableContext BC, list<P>){}
3. Finish method
global void
finish(Database.BatchableContext BC){}
Workflow in Salesforce?
What is Workflow in salesforce
or Why use?
Ans:-
workflow is an automated process rule.
This rule to perform when a record created and edited to check the specific
criteria.
What is Immediate Workflow Actions ?
Ans:-
1. New
Task Create 10
2. Field
Update 10
3. Email
Alert 10
4. Outbound
Messages 10
What is Time Dependent Work Flow?
Ans;-
Time-dependent actions that queue when a
record matches the criteria, and execute according to time triggers. For
example, salesforce.com can automatically send an email reminder to the account
team if a high-value opportunity is still open ten days before the close date.
Time Dependent Work flow does not follow the every time a record is created or edited workflow Evaluate Rule.
What is Approval Process?
Ans:-
Approvals are complex business processes this
rule to perform when a record approve or Rejected to Hierarchal Role User to
check the special Criteria. To create a new approval process, click Create New Approval
Process then select Use Jump Start Wizard to set up your approval process in a
few short steps. Or, select Use Standard Wizard to configure all approval
options.
Approval Process Step type:-
1.
Initial Submission Action
2.
Final Approval Action
3.
Final Rejections Action
4.
Recall Actions
What is Validation Rules?
Ans:-
Validation
rules help improves data quality by preventing users from saving incorrect
data. You can define one or more validation rules that consist of an error
condition and corresponding error message. Validation rules are executed at
record save time. If an error condition is met, the save is aborted and an
error message displayed.
Example:-
1.
Make fields conditionally required, depending on the value of
another field.
2.
Ensure that numbers are within a specified range, such as discount
is less than 30%.
3.
Enforce that date fields are the correct chronological sequence,
such as start date is before end date
What is Workflow Evaluate Rule ?
Ans:-
1. When a record is created, or when
a record is edited and did not previously meet the rule criteria.
2. Only when a record is created.
3. Every time a record is created or
edited.
Lead Object ?
What is Lead in salesforce or What is Lead Object in salesforce?
Ans:-
When a lead is created in
Sales force CRM, information about the interested person is stored in the lead
object. In addition to moving lead information to the contact object, the app creates
two additional objects: an account object and an opportunity object.
The account object
holds all the information about your customer in essence, it becomes the
central object.
The opportunity object
becomes part of the sales pipeline, which makes it possible to track the deal
as it moves through the pipeline.
Reps can attach
additional contacts and opportunities to accounts or additional contacts to
opportunities.
Example :- ABC Company ( account)
may be associated with several employees at ABC Company (contacts) as well
deals in progress for different products (opportunities).
Monday, 3 September 2012
Profile Related ?
Different Between Profile and
Role?
Ans:-
What is Profile ?
Profiles control a user’s object- and field-level access
permission.
A user can't be
defined without being assigned to a particular profile. Whereas coming to roles.
What is Role?
Roles control user's
record-level access permissions through role hierarchy and sharing rules.
Although a role assignment is not required
when we create a user.
What is Record Type and Why Use?
Ans:- Record
types allow you to offer different business processes, pick list values, and
page layouts to different users based on their profiles. Record types can
be used in various ways.
Example:-
1) Create record types for opportunities to
differentiate your regular sales deals from your professional services
engagements and offer different pick list values for each.
2) Create record types for cases to display
different page layouts for your customer support cases versus your billing
cases.
Whjat is Public Groups?
Ans:-
Groups are sets of
users. They can contain individual users, other groups, the users in a
particular role or territory, or the users in a particular role or territory
plus all of the users below that role or territory in the hierarchy.Customer
Portal users can’t access this object.
What is What is Queue?
Ans:- Queues is a feature available to salesforce.com users that allows you to integrate
prospect assignments with your current salesforce.com workflow. Rather than
assigning to a specific user in Pardot, you can choose to assign leads to a
salesforce.com queue and then use your CRM workflow or manual method of
distributing leads to sales representatives. Queues allow you to use the
benefits of Pardot lead management without disrupting your existing workflow.
What is Template and Why use ?
Ans:-
Template is
Reusable componentwe can use the sending the Email. Salesforce.com
has a concept of Communication Templates that allow you to create
"templates" for emails that you can send via salesforce.com.
Scheduler class ?
What is Scheduler class in Apex?
Ans:- The Apex class which is programed to run at
pre defined interval.
Class must implement schedulable interface and it contains method named execute().
Class must implement schedulable interface and it contains method named execute().
Two
ways to Invoke scheduler :-
a)
Using UI.
b)
Using System.Schedule.
The
class which implements interface schedulable
get
the button texted with “Schedule”,
when
user clicks on that button,
new
interface opens to schedule the classes which implements that interface.
To
see what happened to scheduled job,
go to “Monitoring |
Scheduled jobs “.
Example:-
scheduledMerge m = new scheduledMerge();
|
||
String sch = '20 30 8 10 2
?';
|
system.schedule('Merge Job', sch,
m);
|
External ID and Unique ID?
Difference
between UniqueID and ExternalID?
Ans:-
Ans:-
UniqueID field Case :-
This is a setting for the field that will prevent you from using
the same value in multiple records for the unique field. So if I create a 5
character text field and make it unique, and I create a record with the value
“12345″ i will not be able to create another record with that same value in the
unique field. If i try to do so, I will get an error saying that the value is
already in use.
Often, External Ids are set with the unique property so that the
IDs will be unique to each record.
ExternalID field Case:-
This is a field that usually references an ID from another (external) system.
For instance, if the customer has an Oracle Financials system that they will be
linking with salesforce.com, it may be easier for them to be able to refer to
the Oracle ID of account records from within salesforce. So they would create
an external ID in salesforce.com and they would load the Oracle ID into that
field for each account. They can then refer to that ID field, rather than the
salesforce.com id.
Additionally, if you have an external ID field, the field
becomes searchable in the sidebar search. You also can use the upsert API call
with the extenal ID to refer to records.
You can have multiple records with the same external ID or
(though it is not recommended, as it will defeat the purpose of the external
id).
External Id available for Text, Number and Email field types.
External Id is also used
in upsert operations.
1.If external id is absenor not matched then insert happens.
2.If external id matched once then record will be updated.
3.If external id is matched multiple times then error occurs.
System.runAs() ?
What is System.runAs() and Why use?
Ans:- Actually, all Apex code runs in system mode,
and the permissions and record sharing of the current user are not taken into
account. The system method, System.runAs(), lets you write test
methods that change user contexts to either an existing user or a new user. All
of that user’s record sharing is then enforced. You can only use runAs in a test method. The original system
context is started again after all runAs() test methods complete.
Example :-
1
|
System.runAs(user) {
|
|
2
|
// The following code runs as user
'user'
|
3
|
System.debug('Current User: ' +
UserInfo.getUserName());
|
|
4
|
System.debug('Current Profile: ' +
UserInfo.getProfileId()); }
|
5
|
// Run some code that checks record
sharing now
|
|
6
|
}
|
WSDL?
What is WSDL?
WSDL stands for Web Service Definition Language. WSDL use to Integration between .Net
Application to sales force Application.
Two
type :-
1) Partner WSDL
2)Enterprise WSDL
What is Partner WSDL?
Ans:- This
WSDL document is for customers, partners, and ISVs who want to build an
integration that can work across multiple Salesforce organizations,
regardless of their custom objects or fields. It is loosely typed, which
means that you work with name-value pairs of field names and values instead of
specific data types. The partner WSDL document only needs to be downloaded and consumed
once per version of the API.
What is Enterprise
WSDL?
Ans:- This
WSDL document is for customers who want to build an integration with
their Salesforce organization only. It is strongly typed, which
means that it contains objects and fields with specific data types, such
as integer and string. Customers who use the enterprise WSDL document must download and
re-consume it whenever their organization makes a change to its custom objects
or fields or whenever they want to use a different version of the API.
Collection in Salesforce?
How many Type Collection in Salesforce?
Ans:-
3 types
a) Lists
b) Set
c) Map
What is list ?
Ans:-
A list is an ordered collection of typed primitives, sObjects, user-defined
objects, Apex objects or collections that are distinguishedby their indices.The
index position of the first element in a list is always 0.
Example:-
List<String>mylist = new List<String>();
What is Set ?
Ans:- A set is an
unordered collection of primitives or sObjects that do not contain any
duplicate elements.
To access elements in
a set, use the system methods provided by Apex.
Example:-
Set<Integer> st = new Set<Integer>
(); // Define a new set
st.add (1); // Add an element to the set
st.remove
(1); // Remove the element from the set
What is Map?
Ans:- A
map is a collection of key-value pairs where each unique key maps to a single
value. Keys can be any primitive data type, while values can be a primitive,
sObject, collection type or an Apex object.
To declare a map, use the Map keyword
followed by the data types of the key and the value within <> characters.
Example :-
Map<String, String>country_currencies = new
Map<String, String>();
Map<ID, Set<String>> m = new
Map<ID, Set<String>>();
Map<ID, Map<ID, Account[]>> m2 = new
Map<ID, Map<ID, Account[]>>();
Sunday, 2 September 2012
Different between Master Details and Lookup Relationship?
·
You can't create
a record without including an M-D relationship field. It is a required
field. Lookups are not required fields.
·
Cascade deletes
- When you delete the parent of a master-detail relationship, all of the child
records get deleted too
·
Rollup Summary
fields are only available on master-detail relationships, not lookups.
·
Master Relationship Parent Records inherit the child records
but not in Look ups.
·
One other
important difference is that in Master-Detail, it is the master that controls the
ownership/visibility of the child record - the
child record doesn't have a separate owner record, so can only be shared via the Parent's visibility
rules...but not in Lookup.
What is features of Manage Members in campaign records?
Ans:-
Campaign members are created from lead, contact, or person account recordsa. Salesforce provides a variety of ways in which you can manage your campaign members. You can add and update up to 50,000 campaign members at a time through lead, contact, and person account reports; you can search for and add or edit multiple leads and contacts from the Manage Members page; you can add an unlimited number of leads and contacts using a CSV import file; or you can add members to a campaign one at a time from contact or lead detail pages.
What is the Standard and custom objects in sales
force?
Ans:-
Objects already created for you by Sales force are called standard objects.
Objects you create in your organization are called custom objects.
Objects already created for you by Sales force are called standard objects.
Objects you create in your organization are called custom objects.
A single Apex transaction can make how many callouts to an HTTP request or an API call ?
Ans :- Maximum 10 callouts
Ans :- Maximum 10 callouts
What is Formulas?
Ans:- A formula is similar to an equation that
is executed at run time. Depending on the context of the formula, it can make
use of various data and operations to perform the calculation. A useful way to
think about formulas is that they are similar to formulas on a spreadsheet.
These formulas can make use of data and operations to calculate a new value of
some type.
Formula Field returns type-Currency, datetime, date,
Number, Percent, and Text.
Dependent
Picklists in SFDC?
Ans:- Dependent
fields provide a way to filter the field values Dependent fields consist of two
parts: a controlling field that determines the filtering; and a dependent field
that has its values filtered. Dependent fields can dynamically filter values in
fields such as picklists, multi-select picklists, radio buttons, and
checkboxes. Dependent picklists can only be displayed on Visualforce pages with a Salesforce API version 19.0
or higher.displayed on a Visualforce page
Application
in SFDC ?
Ans:- app is a group of tabs that works as a unit to provide functionality. Users can switch between apps using the Force.com app drop-down menu at the top-right corner of every page.
You can customize existing apps to match the way you work, or build new apps by grouping standard and custom tabs.
Ans:- app is a group of tabs that works as a unit to provide functionality. Users can switch between apps using the Force.com app drop-down menu at the top-right corner of every page.
You can customize existing apps to match the way you work, or build new apps by grouping standard and custom tabs.
Tab in SFDC ?
- Ans:-You can create new custom tabs to extend salesforce.com functionality or to build new application functionality.
- Ans:-You can create new custom tabs to extend salesforce.com functionality or to build new application functionality.
Custom
Object Tabs look and behave like the standard tabs provided with
salesforce.com. Web Tabs allow you to embed external web applications and
content within the salesforce.com window. Visualforce Tabs allow you to embed
Visualforce Pages
Three type tab-
1.Custom tab
2.Web Tab
3.Visual force Tab
Manage Page Layouts?
Ans:- You can customize the page layouts for record detail and edit pages, Self-Service portal pages, Salesforce Customer Portal pages, and the case close page. Page layouts control the layout and organization of buttons, fields, s-controls,Visualforce, custom links, and related lists. They also help determine which fields are visible, read only, and required. Page layouts can include s-controls and Visualforce pages that are rendered within a field section when the page displays. You can control the size of the s-controls and Visualforce pages, and determine whether or not a label and scroll bars display.
Ans:- You can customize the page layouts for record detail and edit pages, Self-Service portal pages, Salesforce Customer Portal pages, and the case close page. Page layouts control the layout and organization of buttons, fields, s-controls,Visualforce, custom links, and related lists. They also help determine which fields are visible, read only, and required. Page layouts can include s-controls and Visualforce pages that are rendered within a field section when the page displays. You can control the size of the s-controls and Visualforce pages, and determine whether or not a label and scroll bars display.
Subscribe to:
Posts (Atom)