tag:blogger.com,1999:blog-5058781265898568552023-07-17T21:57:27.961-07:00Salesforce Learning GuideSalesforce Course Contents, Study Materials, Interview Questions and Many More Anonymoushttp://www.blogger.com/profile/01052144460886740876noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-505878126589856855.post-57513408367500783002014-11-18T07:12:00.000-08:002014-11-18T07:12:03.308-08:00Introduction about Cloud Computing<div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
<span style="font-size: medium;">Introduction about Cloud Computing</span></h3>
<span style="font-size: x-small;">“What’s the cloud?” “Where is the
cloud?” “Are we in the cloud now?!” These are all questions you’ve
probably heard or even asked yourself. Now new trend in IT is Cloud
computing.</span><br />
<br />
<span style="font-size: x-small;"><b><i>In the simplest terms, cloud
computing means storing and accessing data and programs over the
Internet instead of your computer’s hard drive. </i></b></span><br />
<br />
<span style="font-size: x-small;">What cloud computing is <em>not</em>
about is your hard drive. When you store data on–or run programs from
the hard drive, that’s called local storage and computing. Everything
you need is physically close to you, which means accessing your data is
fast and easy (for that one computer, or others on the local network).
Working off your hard drive is how the computer industry functioned for
decades and some argue it’s still superior to cloud computing, for
reasons I’ll explain shortly.</span><br />
<br />
<span style="font-size: x-small;">The cloud is also <em>not</em> about
having a dedicated hardware server in residence. Storing data on a home
or office network does not count as utilizing the cloud.</span><br />
<br />
<span style="font-size: x-small;">For it to be considered “cloud
computing,” you need to access your data or your programs over the
Internet, or at the very least, have that data synchronized with other
information over the Net. In a big business, you may know all there is
to know about what’s on the other side of the connection; as an
individual user, you may never have any idea what kind of massive
data-processing is happening on the other end. The end result is the
same: with an online connection, cloud computing can be done anywhere,
anytime.</span><br />
<h3>
<span style="font-size: x-small;"><img alt="Cloud Computing" class="aligncenter size-full wp-image-12" height="421" src="http://www.salesforcetutorial.com/wp-content/uploads/2013/04/Cloud-Computing.jpg" width="683" /></span></h3>
<h3>
<span style="font-size: medium;"><b>Life before cloud computing</b></span></h3>
<span style="font-size: x-small;">Traditional business applications
have always been very complicated and expensive. The amount and variety
of hardware and software required to run them are daunting. You need a
whole team of experts to install, configure, test, run, secure, and
update them.</span><br />
<span style="font-size: x-small;">When you multiply this effort across
dozens or hundreds of apps, it’s easy to see why the biggest companies
with the best IT departments aren’t getting the apps they need. Small
and mid-sized businesses don’t stand a chance.</span><br />
<h3>
<span style="font-size: medium;"><strong>Cloud computing: a better way</strong></span></h3>
<span style="font-size: x-small;">With cloud computing, you eliminate
those headaches because you’re not managing hardware and software—that’s
the responsibility of an experienced vendor like salesforce.com. The
shared infrastructure means it works like a utility: You only pay for
what you need, upgrades are automatic, and scaling up or down is easy.</span><br />
<span style="font-size: x-small;">Cloud-based apps can be up and
running in days or weeks, and they cost less. With a cloud app, you just
open a browser, log in, customize the app, and start using it.</span><br />
<span style="font-size: x-small;">Businesses are running all kinds of
apps in the cloud, like customer relationship management (CRM), HR,
accounting, and much more. Some of the world’s largest companies moved
their applications to the cloud with salesforce.com after rigorously
testing the security and reliability of our infrastructure.</span><br />
<span style="font-size: x-small;">As cloud computing grows in
popularity, thousands of companies are simply rebranding their non-cloud
products and services as “cloud computing.” Always dig deeper when
evaluating cloud offerings and keep in mind that if you have to buy and
manage hardware and software, what you’re looking at isn’t really cloud
computing but a false cloud.<b><br />
</b></span><br />
<h3>
<span style="font-size: medium;"><b>Characteristics of Cloud Computing</b></span></h3>
<span style="font-size: x-small;"><strong>On-demand: </strong>Resources
should be always available when you need them, and you have control
over turning them on or off to ensure there’s no lack of resource or
wastage happen.</span><br />
<span style="font-size: x-small;"><strong>Scalable: </strong>You should
be able to scale (increase or decrease the resource) when necessary.
The cloud providers should have sufficient capacity to meet customer’s
needs.</span><br />
<span style="font-size: x-small;"><strong>Multi-tenant: </strong>Sometimes
you may be sharing the same resource (e.g. hardware) with another
tenant. But of course, this is transparent to the customer. Cloud
provider shall responsible the security aspect, ensuring that one tenant
won’t be able to access other’s data.</span><br />
<span style="font-size: x-small;"><strong>Self-service computation and storage resource: </strong>Related
processes including: billing, resource provisioning, and deployment
should be self-service and automated, involving much less manual
processing. If a machine where our service is hosted fails, the cloud
provider should be able to failover our service immediately.</span><br />
<span style="font-size: x-small;"><strong>Reliability: </strong>Cloud provider should be able to provide customer reliability service, committing to uptimes of their service.</span><br />
<span style="font-size: x-small;"><strong>Utility-based subscription: </strong>You
will pay the cloud provider as a utility based subscription, just like
paying your electricity bill – without any upfront investment.</span><br />
<h3>
<span style="font-size: medium;"><b>Service models in cloud computing</b></span></h3>
<span style="font-size: x-small;">1. Infrastructure as a service (IaaS)</span><br />
<span style="font-size: x-small;">2. Platform as a service (PaaS)</span><br />
<span style="font-size: x-small;">3. Software as a service (SaaS)</span><br />
<span style="font-size: x-small;">4. Network as a service (NaaS)</span><br />
<br />
<div class="wp-caption aligncenter" id="attachment_19" style="width: 376px;">
<img alt="Services" class="size-full wp-image-19" height="344" src="http://www.salesforcetutorial.com/wp-content/uploads/2013/04/Services.jpg" width="366" /><div class="wp-caption-text">
<span style="font-size: x-small;">Service Models in cloud computing</span></div>
</div>
<h3>
<span style="font-size: medium;"><b>Cloud computing Types</b></span></h3>
<span style="font-size: x-small;">A <strong>public cloud</strong> is
one based on the standard cloud computing model, in which a service
provider makes resources, such as applications and storage, available to
the general public over the Internet. Public cloud services may be free
or offered on a pay-per-usage model.</span><br />
<span style="font-size: x-small;">A <strong>private cloud</strong> is
designed to offer the same features and benefits of public cloud
systems, but removes a number of objections to the cloud computing model
including control over enterprise and customer data, worries about
security, and issues connected to regulatory compliance.</span><br />
<span style="font-size: x-small;">A <strong>hybrid cloud</strong> is a
composition of at least one private cloud and at least one public cloud.
A hybrid cloud is typically offered in one of two ways: a vendor has a
private cloud and forms a partnership with a public cloud provider, or a
public cloud provider forms a partnership with a vendor that provides
private cloud platforms.</span><br />
<span style="font-size: x-small;"><img alt="Cloud Computing Types" class="aligncenter size-full wp-image-17" height="256" src="http://www.salesforcetutorial.com/wp-content/uploads/2013/04/Cloud-Computing-Types.jpg" width="617" /></span><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-12204910705555593432014-11-18T07:11:00.002-08:002014-11-18T07:11:20.542-08:00Salesforce(Cloud computing Training) Material<div dir="ltr" style="text-align: left;" trbidi="on">
Following are list of salesforce(Cloud computing Training) materials.<br />
<br />
1. To view basic fundamental Salesforce (Cloud computing Training) Material click following link.<br />
<br />
<a href="http://www.salesforce.com/us/developer/docs/fundamentals/salesforce_creating_on_demand_apps.pdf" target="_blank" title="Salesforce(Cloud computing Training) Fundamentals">Salesforce Fundamentals </a>(Force.com Platform Fundamentals)<br />
<br />
2. To know the Sales force editions and Pricing details See the following link.<br />
<br />
<a href="http://www.salesforce.com/in/crm/editions-pricing.jsp" target="_blank" title="Salesforce editions and pricing">Salesforce-editions-and-Pricing</a><br />
<br />
3. To know more about Salesforce(Cloud computing Training) Material see the following links.<br />
<br />
<a href="http://www.salesforce.com/us/developer/docs/dev_lifecycle/salesforce_development_lifecycle.pdf" target="_blank" title="Salesforce Development Life Cycle">Salesforce Development Life Cycle</a><br />
<br />
<a href="http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf" target="_blank" title="Salesforce Apex code developers guide">Salesforce Apex code developers guide</a><br />
<br />
<a href="http://www.salesforce.com/us/developer/docs/pages/salesforce_pages_developers_guide.pdf" target="_blank" title="Salesforce visual force developers guide">Salesforce visual force developers guide</a><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-3710963322044945332014-11-18T07:10:00.004-08:002014-11-18T07:10:35.246-08:00Model View Controller (MVC)<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Model view controller</b> (<b>MVC</b>) is a software architecture pattern which separates the representation of information from the user’s interaction with it.<br />
<br />
In addition to dividing the application into three kinds of components, the MVC design defines the interactions between them.<br />
<br />
A <b>controller</b> can send commands to its associated view to
change the view’s presentation of the model (e.g., by scrolling through a
document). It can also send commands to the model to update the model’s
state (e.g., editing a document).<br />
<br />
A <b>model</b> notifies its associated views and controllers when
there has been a change in its state. This notification allows the views
to produce updated output, and the controllers to change the available
set of commands. A <i>passive</i> implementation of MVC omits these
notifications, because the application does not require them or the
software platform does not support them.<br />
<br />
A <b>view</b> requests from the model the information that it needs to generate an output representation.<br />
<br />
<div class="wp-caption aligncenter" id="attachment_72" style="width: 345px;">
<img alt="Model View Controller (MVC)" class="size-full wp-image-72" height="354" src="http://www.salesforcetutorial.com/wp-content/uploads/2013/04/mvc.jpg" width="335" /><div class="wp-caption-text">
Model View Controller (MVC)</div>
</div>
<br />
<b>SFDC MVC:</b> You can write your VIEW pages using SFDC visual
force (VF pages). VF pages are similar to our JSP pages. Each VF page
is associated with a Controller. you can make use to already built
Standard controllers or you can write your own controller using Apex
language. Apex is OO and very much similar to our JAVA. you can also
write Model Classes using Apex.<br />
<br />
Visualforce uses the traditional model-view-controller (MVC)
paradigm, with the option to use auto-generated controllers for database
objects, providing simple and tight integration with the database. You
can write your own controllers, or extensions to controllers, using Apex
Code. Visualforce also provides AJAX components, and embeds the formula
expression language for action, data and component binding interaction.<br />
<br />
Salesforce.com is award winning tool to manage all the data of sales
team of an organization. The flexibility and assurance of safe data
provided by Salesforce.com results into nonparallel development
capabilities to the developer.<br />
SFDC MVC pattern contains below three modules:<br />
<ol start="1">
<li>Model</li>
<li>View</li>
<li>Controller</li>
</ol>
<b>Model: </b>What schema and data does salesforce uses to represent the system completely. In salesforce, we can say that <b>sObjects </b>are the model as every entity in salesforce is mapped to some sObject.<br />
<b>View: </b>How the schema and data is represented. <b>Visualforce </b>is used to present the data to users.<br />
<b>Controller: </b>How the interface actions. <b>Controllers </b>are used to perform the actions whenever users interact with visual force.<br />
In SFDC<br />
<strong>1.</strong> <strong>Visual Force pages, Page Layouts, Tabs comes under View Layer of Model View controller .</strong><br />
<strong>2. Workflows, Apex Classes, Triggers comes under Controller part in Model View controller .</strong><br />
<strong>3. Objects, Fields, Relationships comes under Model Layer of Model View Controller .</strong><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-58169380823287042092014-11-18T07:09:00.000-08:002014-11-18T07:09:30.881-08:00Using VLOOKUP to enforces data consistency<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Using VLOOKUP function in validation rules</h2>
<div style="text-align: justify;">
What is the purpose of VLOOKUP function?
It searches an object for a record where specified field matches the
specified lookup value. If a match is found, returns another specified
value.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Syntax of vlookup:</strong></div>
<div style="text-align: justify;">
<strong>VLOOKUP(field_to_return, field_on_lookup_object, lookup_value)</strong></div>
<div style="text-align: justify;">
Here I will give a simple example, how to use VLOOKUP function in validation rule.</div>
<div style="text-align: justify;">
<strong>Example:</strong> Create
validation rule that checks the “Billing ZIP/postal code” entered
against a table to validate that the zip code and state match.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
To track ZIP Codes I have created custom object called “<strong>Zip Code</strong>”
in this object I am storing zip code, states & countries. And
created below records (sample records) in this zip codes object.</div>
<table style="height: 210px; width: 624px;">
<tbody>
<tr>
<td width="64"><strong>ZIP Code</strong></td>
<td width="60"><strong>State</strong></td>
<td width="87"><strong>City</strong></td>
</tr>
<tr>
<td>35004</td>
<td>Alabama</td>
<td>Moody</td>
</tr>
<tr>
<td>35005</td>
<td>Alabama</td>
<td>Adamsville</td>
</tr>
<tr>
<td>35010</td>
<td>Alabama</td>
<td>Alexander City</td>
</tr>
<tr>
<td>90001</td>
<td>California</td>
<td>Los Angeles</td>
</tr>
</tbody>
</table>
<div style="text-align: justify;">
Below validation rule validate Billing
zip/postal code in account object with the codes in zip code object. If
you enter wrong zip code this validation rule throw an error.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Creating validation rule:</strong></div>
<div style="text-align: justify;">
To create validation rule go to s<strong>etup -> Build -> Customize -> Account -> Validation rule</strong> and enter required information.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Error condition formula:</strong></div>
<div style="text-align: justify;">
VLOOKUP($ObjectType.Zip_code__c.Fields.State__c, $ObjectType.Zip_code__c.Fields.Name
, LEFT( BillingPostalCode ,5))<> BillingState</div>
<div style="text-align: justify;">
See the below image for reference.</div>
<div style="text-align: justify;">
<img alt="VLOOKUP" class="aligncenter size-medium wp-image-956" height="282" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/vlookup-validation-rule-300x282.png" width="300" /></div>
<div style="text-align: justify;">
<strong>How to test this validation rule?</strong></div>
<div style="text-align: justify;">
To test this validation rule go to
Account tab and create new account record with enter billing city = Los
Angeles, Billing State/Province = Califirnia and postal code = 3099 and
save this record, you will get associated error message. If you enter
correct data which is mentioned in above table, record will save. If you
enter wrong data validation rule will fire an error.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
See the below image for reference.</div>
<div style="text-align: justify;">
<img alt="VLOOKUP" class="aligncenter size-medium wp-image-959" height="282" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/vlookup-validation-rule1-300x282.png" width="300" /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-12526755789944070732014-11-18T07:05:00.001-08:002014-11-18T07:05:41.797-08:00Salesforce chatter<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
<strong>Working with Salesforce Chatter:</strong></h2>
<div style="text-align: justify;">
What is Salesforce chatter? Chatter in
salesforce allows you to collaborate the people with each other in your
organization. You can connect with your coworkers and you can share
information securely in real time. You can create groups like Facebook
groups such public groups and private groups and you can invite your
coworkers to join those groups by using salesforce chatter. And also you
share your comments, add images and you can like others comments/posts.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
By default Salesforce chatter is enabled
now in Salesforce (Organizations created after 22nd June 2010). If this
is not enabled to your organization and if you want to enable this
setup follow below steps.</div>
<div style="text-align: justify;">
Make sure that you have “Customize application” user permission to do this setup.</div>
<div style="text-align: justify;">
1. Login to Salesforce.</div>
<div style="text-align: justify;">
2. Setup -> Customize -> chatter -> settings and <strong>‘enable’</strong> chatter under chatter settings and save.</div>
<div style="text-align: justify;">
See the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="Salesforce Chatter" class="aligncenter wp-image-970 size-medium" height="75" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/chatter-1-300x75.png" width="300" /></div>
<div style="text-align: justify;">
Once you enabled chatter, by default
Global header will be enabled to your organization. And also by default
you may fallow few users and records.</div>
<div style="text-align: justify;">
By enable chatter few additional profile permissions will come at profile/permission set level. Those are</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>App Permissions:</strong></div>
<div style="text-align: justify;">
<strong>Salesforce Chatter:</strong>
When you enable this functionality automatically this application
permission will be enabled for all your profiles in slaesforce. If you
don’t want to give this application permission to some profiles, you can
disable this permission.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Tab Permission: </strong></div>
<div style="text-align: justify;">
<strong>Chatter : </strong>When you
enable chat functionality, this tab will automatically enable (default
on) to all profiles in your organization. If you don’t want display this
to some profiles you can hide this tab.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Administrative permissions: </strong>Chatter
Internal User, Create and Own New Chatter Groups, Invite Customers to
Chatter, Moderate Chatter, and Manage Chatter Messages.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>General User permissions: </strong>Create and Share Links to Chatter Files, Insert System Field Values for Chatter Feeds.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Important notes when you enable chatter in salesforce:</strong></div>
<div style="text-align: justify;">
- After enabling this you will see new
look and feel. Global header will enable there you can search your
sobject records, chatter feeds, Groups and users.</div>
<div style="text-align: justify;">
- All users will automatically fallow when you enable this for organization with 15 or fewer users.</div>
<div style="text-align: justify;">
- This functionality is automatically available for salesforce1 apps when you enable in your org.</div>
<div style="text-align: justify;">
- Few standard publisher action available when enable this. And also you can create your own publisher actions.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
There are many more interesting things about salesforce chatter. <a href="http://www.salesforce.com/ap/assets/pdf/cloudforce/Chatter-SalesforceChatter.pdf" target="_blank" title="salesforce chatter">See reference to more about salesforce chatter.</a></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-47087662654371586382014-11-18T07:04:00.002-08:002014-11-18T07:04:45.063-08:00Working with Chatter Group<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Chatter Groups</h2>
<div style="text-align: justify;">
What is a chatter groups? What type of
chatter groups we can create? Groups allow collaborate with specific set
of people. Many of you know about groups in Facebook. In Facebook you
can create groups and you can invite your friends as a members. The same
type of groups you can create in salesforce chatter groups and you can
invite members to that group. We can create public and private chatter
groups.</div>
<div style="text-align: justify;">
<strong>Public Group: </strong>In public groups every one can join and every one can see, add post, add files & add comments.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>What public group members can do in public groups: </strong>Public chatter group<strong> </strong>Members can change email settings, they can invite people and they can leave the group.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong><em>If you are the public group the owner</em>,</strong> if
you are a public chatter group owner, you can add/remove group members,
you can change the group photo, you can edit group settings like
information section and description section and you can change member
roles.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Private Group: </strong>In
private groups only members can see add posts, comments and files. And
also Group admin/Owner approval must to join in private groups. People
who is having modify all permission at profile/permission set level can
see post, updates, and files, and they can join private groups
directly.</div>
<div style="text-align: justify;">
<strong>What private group members can do in private groups: </strong>Private chatter group Members can change email settings, they can invite people and they can leave the group.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong><em>If you are the private group the owner</em>,</strong> If
you are a owner of private chatter group you can add/remove group
members, you can change the group photo, you can edit group settings
like information section and description section, you can change member
roles and you can accept/decline group member request.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Creating Chatter Group: </strong></div>
<div style="text-align: justify;">
To create chatter group user should have
“Create and Own new chatter groups” user permission required at
profile/permission set level.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
To create chatter group <span style="color: blue;">login to salesforce -> click on chatter tab -> click on Groups and click on New Group. <span style="color: black;">See the below screen for reference.</span></span></div>
<div style="text-align: justify;">
<img alt="Chatter Group" class="aligncenter size-medium wp-image-992" height="123" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/chatter-group2-300x123.png" width="300" /></div>
<div style="text-align: justify;">
After clicks on new group and enter required details and save it. See the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="Chatter Group" class="aligncenter wp-image-993 size-medium" height="243" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/chatter-3-300x243.png" width="300" /></div>
<div style="text-align: justify;">
While creating groups you have to enter</div>
<div style="text-align: justify;">
1. Basic information like Group name, description and Archive settings.</div>
<div style="text-align: justify;">
2. Group access settings like Public and
Private and save. After creating group, members/owners can see/edit
group settings like email settings, information, description they can
invite members to the group. And also publisher actions available those
are marked in red color in below image and also you can share your
posts. See the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="chatter group" class="aligncenter size-medium wp-image-994" height="141" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/chatter-group3-300x141.png" width="300" /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-38426184284589424422014-11-18T06:08:00.000-08:002014-11-18T06:08:13.846-08:00Visualforce page to add multiple records<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Adding multiple records:</h2>
Generally by using standard salesforce tab you can enter only one
record at a time form UI. I don’t want to enter single record at a time.
I want to enter multiple records at time. How can we achieve this? We
can achieve this by using simple visual force page.<br />
<strong>Example:</strong> I want to enter multiple accounts in single save. See the below visualforce page.<br />
<br />
<strong>Visualforce page:</strong><br />
<apex:page Controller=”AddmultipleAccountsController”><br />
<apex:form ><br />
<apex:pageBlock ><br />
<apex:pageBlockTable value=”{!listAccount}” var=”acc”><br />
<apex:column headerValue=”Account Name”><br />
<apex:inputField value=”{!acc.Name}”/><br />
</apex:column><br />
<apex:column headerValue=”Account Number”><br />
<apex:inputField value=”{!acc.AccountNumber}”/><br />
</apex:column><br />
<apex:column headerValue=”Account Type”><br />
<apex:inputField value=”{!acc.Type}”/><br />
</apex:column><br />
<apex:column headerValue=”Industry”><br />
<apex:inputField value=”{!acc.Industry}”/><br />
</apex:column><br />
</apex:pageBlockTable><br />
<apex:pageBlockButtons ><br />
<apex:commandButton value=”Add Accounts Row” action=”{!addAccount}”/><br />
<apex:commandButton value=”Save Accounts” action=”{!saveAccount}”/><br />
</apex:pageBlockButtons><br />
</apex:pageBlock><br />
</apex:form><br />
</apex:page><br />
<br />
<strong>Controller related to above page:</strong><br />
public class AddmultipleAccountsController {<br />
Account account = new Account();<br />
public list<Account> listAccount{ get; set; }<br />
public AddmultipleAccountsController()<br />
{<br />
listAccount=new list<Account>();<br />
listAccount.add(account);<br />
}<br />
Public void addAccount()<br />
{<br />
Account acc = new Account();<br />
listAccount.add(acc);<br />
}<br />
public PageReference saveAccount() {<br />
for(Integer i=0; i<listAccount.size(); i++)<br />
{<br />
insert listAccount;<br />
}<br />
return Page.Allaccountssaved;<br />
}<br />
}<br />
<strong>Visualforce page Allaccountssaved( using this page above controller):</strong><br />
<apex:page sidebar=”false” showHeader=”true”><br />
<center><h3>Congrtas your accounts are successfully saved!!</h3></center><br />
</apex:page><br />
<br />
<strong>Output of above example:</strong><br />
<img alt="Multiple records" class="aligncenter wp-image-1006" height="60" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/multiple-records-1-300x56.png" width="319" /><br />
Here Add Account row is used to enter one more account and Save
Account is used to save all account records you entered. See below
screen, you can understand functionality of Add Account Row button.<br />
<img alt="Multiple" class="aligncenter size-medium wp-image-1007" height="103" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/Multiple-Records-2-300x103.png" width="300" /><br />
After saving you will get below screen.<br />
<a href="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/multiple-3.png"><img alt="Multiple 3" class="aligncenter size-medium wp-image-1008" height="12" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/multiple-3-300x12.png" width="300" /></a><br />
This is simple example to explain how to enter multiple records at time form UI.<br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-18859223701430999632014-11-18T06:02:00.002-08:002014-11-18T06:02:26.489-08:00How to provide Object Permissions?<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Object Permissions</h2>
<div style="text-align: justify;">
What is object permissions? In
salesforce we can provide permissions to object at profile/permissions
sets level. Object level we can provide <strong>read, create, edit, delete, view all</strong> <strong>& Modify all</strong> permissions in profiles/permission sets.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Read:</strong> Users can only read/view records.</div>
<div style="text-align: justify;">
<strong>Create:</strong> Users can read & create records.</div>
<div style="text-align: justify;">
<strong>Edit:</strong> Users can read & Edit.</div>
<div style="text-align: justify;">
<strong>Delete:</strong> Users can read, Edit & delete records.</div>
<div style="text-align: justify;">
<strong>View All:</strong> Users can view all records in the object irrespective of sharing settings.</div>
<div style="text-align: justify;">
<strong>Modify All:</strong> Users can read, edit, delete, view all & modify all (can transfer, approve) irrespective of sharing settings.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Above 6 permissions we can set at object
level in profile/permission set. Read, Create, Edit, Delete respects
sharing settings. But View all & Modify all overrides sharing
settings.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Navigation to provide object permissions</strong></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Setup -> Administer -> Manage Users -> profiles -></strong>
select the profile you want give object permissions and go to object
permissions and provide required object permissions to profile. See the
below screen for reference.</div>
<div style="text-align: justify;">
<img alt="Object Permissions" class="aligncenter size-medium wp-image-1014" height="179" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/object-permissions-300x84.png" width="640" /></div>
<div style="text-align: justify;">
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-3504870761968535502014-11-18T06:01:00.001-08:002014-11-18T06:01:30.174-08:00Field Level Security in salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
<strong>Field Level Security (FLS):</strong></h2>
<div style="text-align: justify;">
What is Field level security (FLS)? At
object level we can give permission on what user can with salesforce
record like user can read, create, edit, delete, view all & modify
all. Object permissions we can give at object level. Now i want to
restrict few sensitive fields form my users. I don’t want display these
sensitive fields for all users. We can restrict fields by using field
level security.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
We can give <strong>read & edit</strong> permissions to the field. We can handle these filed level permissions in three ways.</div>
<div style="text-align: justify;">
1. By using “set field level security” button at field level.</div>
<div style="text-align: justify;">
2. By using “view field accessibility” button at field level</div>
<div style="text-align: justify;">
3. In profiles/permission sets we can handle field level permissions.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How can we provide filed level security?</strong></div>
<div style="text-align: justify;">
Now in Account object object i don’t
want to display revenue filed for all profiles in salesforce
organization. For few profiles i want give visible permission , For few
profiles i don’t want display this filed and for few profiles i want to
give both visible and edit permissions. So how many ways we can achieve
this? We can achieve this two ways first is from filed and second one
is from profile.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>1. Field level security by using set field level security button:</strong></div>
<div style="text-align: justify;">
Go to the filed you want to enable field
level permissions and click on Set field level security button. See
the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="Field level security" class="aligncenter size-medium wp-image-1023" height="61" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/FLS1-300x61.png" width="300" /></div>
<div style="text-align: justify;">
After clicking field level security
button, there you can enable that field for profiles you want give
access and save settings. See the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="FLS2" class="aligncenter size-medium wp-image-1024" height="104" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/FLS2-300x104.png" width="300" /></div>
<div style="text-align: justify;">
If you enable only visible check box,
then user can read & edit that field. If you enable both visible
& read only, then user can only see that field, he can edit.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>2. By using view field accessibility button.</strong></div>
<div style="text-align: justify;">
Go to the filed you want to enable field
level permissions and click on view field accessibility button. then
you will navigate to below screen.</div>
<div style="text-align: justify;">
<img alt="Field level Security" class="aligncenter size-full wp-image-1026" height="284" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/fls3.png" width="281" /></div>
<div style="text-align: justify;">
Here you can field accessibility
options. Here we can manage field viability for profiles and page
layouts. You can select fields in field access for field list view. If
you want enable/disable permission click hyper link editable/hidden, you
will get below screen.</div>
<div style="text-align: justify;">
<img alt="Filed level security" class="aligncenter size-medium wp-image-1027" height="110" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/fls4-300x110.png" width="300" /> </div>
<div style="text-align: justify;">
here you can select filed level security at profile level and you can select page layout options also.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>3. Managing Field level security at profile level</strong></div>
<div style="text-align: justify;">
To handle Field permissions go to
profile you want choose and go to Field level security section and
search for object you want enable field permissions, click on view and
edit and provide permissions for required fields and save.</div>
<div style="text-align: justify;">
<img alt="Field level security" class="aligncenter size-medium wp-image-1029" height="102" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/fls-5-300x102.png" width="300" /></div>
<div style="text-align: justify;">
Note: In profiles you can find Field
level security section on profile detail page. You cannot find Field
permission on profile edit page.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-58549873863706921462014-11-18T05:59:00.006-08:002014-11-18T05:59:52.440-08:00ViewState in salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
What is viewState?</h2>
<div style="text-align: justify;">
ViewState holds state of the visualforce
page that holds state that includes the fields, components and
controller state. Viewstate data in encrypted and cannot be viewed tools
like firebug.</div>
<div style="text-align: justify;">
To maintain state in a Visualforce page,
the Force.com platform includes the state of components, field values,
and controller state in a hidden form element. This encrypted string is
referred to as the view state and has a limit of 135KB.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
The data in the viewstate should be
sufficient to recreate the state of the visualforce page when the
postback is received. To do this, viewstate stores:</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
- Stores Non transient data members in the associated controller (standard\custom) and controller extensions.</div>
<div style="text-align: justify;">
- Stores Objects that are reachable from a non-transient data member in a controller or extension.</div>
<div style="text-align: justify;">
- Stores the component tree for that
page, that tree represents the visualforce page’s component structure
and the associated state, which are the values applied to those
components.</div>
<div style="text-align: justify;">
- view state stores small amount of data.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How to see view state:</strong></div>
<div style="text-align: justify;">
You can see view state when developer mode is enabled. See below screen.</div>
<div style="text-align: justify;">
<img alt="ViewState" class="aligncenter wp-image-1035" height="90" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/view-state1-300x67.png" width="398" /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-31892926706558882962014-11-18T05:59:00.002-08:002014-11-18T05:59:15.710-08:00RenderAs – Rendering visualforce page as a pdf<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Rendering visualforce page as a pdf</h2>
How can you rendering vf page as a pdf? By using renderAs attribute you can render visualforce page as a pdf.<br />
Where we can use renderAs attribute? We can use renderAs attribute in apexPage tag like below.<br />
<apex:page StandardController=”Account ” <span style="color: red;"><strong>renderAs=”pdf”</strong></span>><br />
Below is simple code to rendering a visualforce page as pdf.<br />
<apex:page renderAs=”pdf”><br />
<center><br />
<h1>Welocome to Salesforce Tutorial</h1><br />
</center><br />
</apex:page><br />
Below is the output for this.<br />
<img alt="RenderingAs" class="aligncenter size-medium wp-image-1040" height="82" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/renderingAs-300x82.png" width="300" /><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-37220872813888603022014-11-18T05:58:00.004-08:002014-11-18T05:58:39.021-08:00How to install Force.com IDE?<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Force.com IDE</h2>
<div style="text-align: justify;">
What is Force.com IDE? It is powerful tool, which is used to create/modify & deploying Salesforce applications.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How to install force.com IDE?</strong></div>
<div style="text-align: justify;">
1. Install Java SE Development kit
(JDK), Runtime environment – Force.com plug in will fail to load if you
don’t have the full Java JDK.</div>
<div style="text-align: justify;">
2. Install eclipse.</div>
<div style="text-align: justify;">
3. After installing eclipse, launch eclipse and go to help and click on install software.</div>
<div style="text-align: justify;">
<img alt="Foce.com IDE insallation" class="aligncenter size-medium wp-image-1045" height="142" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/09/force.com-ide-installation-1-300x142.png" width="300" /></div>
<div style="text-align: justify;">
4. Click on <strong>add</strong>, in the add repository dialog window, set the name to “Force.com IDE” and give location to” <a href="http://media.developerforce.com/force-ide/eclipse42">http://media.developerforce.com/force-ide/eclipse42</a>”. (This URL is for eclipse 4.2 & 4.3). Click on <strong>OK</strong>.</div>
<div style="text-align: justify;">
<img alt="Force.com Ide Installation 2" class="aligncenter size-medium wp-image-1046" height="246" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/09/force.com-ide-installation-2-300x246.png" width="300" /></div>
<div style="text-align: justify;">
5. If you don’t have latest version of
the software (java & eclipse), then clear the first checkbox the
above screen details section. You will get all available versions of
force.com IDE plug-ins & select the check box next to the force.com
plug-in you want to install and click on next.</div>
<div style="text-align: justify;">
6. And click on next & accept terms and conditions and click on finish.</div>
<div style="text-align: justify;">
7. Eclipse downloads and installs the
Force.com IDE and any other required dependencies. When install
complete, you will be prompted to restart. Click yes.</div>
<div style="text-align: justify;">
8. <span style="color: #333333;">When Eclipse restarts, select<span class="apple-converted-space"> </span></span><b><span style="color: #222222;">Window > Open Perspective > other</span></b><span style="color: #333333;">, select<span class="apple-converted-space"> </span></span><b><span style="color: #222222;">Force.com</span></b><span class="apple-converted-space"><span style="color: #333333;"> </span></span><span style="color: #333333;">and click<span class="apple-converted-space"> </span></span><b><span style="color: #222222;">OK</span></b><span style="color: #333333;">.</span></div>
<div style="text-align: justify;">
Now you are ready to develop &
customize Force.com applications in Eclipse. Use proxy settings when are
working in secured networks. You can find this in <strong>General -> Network connection</strong></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-74473118640675840252014-11-18T05:58:00.000-08:002014-11-18T05:58:02.399-08:00How to use force.com IDE<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Using force.com IDE</h2>
Using force.com IDE is very simple. How to create a simple project by using this tool?<br />
1. Open Eclipse and <strong>go to file -> click on new and select force.com project & enter your project name and credentials.</strong><br />
<img alt="How to use force.com IDE" class="aligncenter size-medium wp-image-1052" height="300" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/09/How-to-use-force.com-IDE-1-238x300.png" width="238" /><br />
2. After logging in, you can select metadata components to download.<br />
<img alt="How To Use Force.com IDE 2" class="aligncenter size-medium wp-image-1053" height="300" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/09/How-to-use-force.com-IDE-2-240x300.png" width="240" /><br />
3. After selecting metadata components click on finish. You will get
all your selected metadata into your workspace. See below screen for
reference.<br />
<img alt="How To Use Force.com IDE 3" class="aligncenter size-medium wp-image-1054" height="152" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/09/How-to-use-force.com-IDE-3-300x152.png" width="300" /><br />
4. How can I get latest changes from force.com server to IDE?<br />
Go to components extracted from server earlier and right click and click on refresh from server to get latest changes to IDE.<br />
Click on save to server to save latest changes from force.com IDE to server.<br />
To deploy you changes from one org to other org click on deploy to server option.<br />
<img alt="How To Use Force.com IDE 4" class="aligncenter size-medium wp-image-1055" height="293" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/09/How-to-use-force.com-IDE-4-300x293.png" width="300" /><br />
This tool is very good tool to develop application in salesforce. We
can deploy metadata changes and many more we can do by using this. After
using this tool you will learn all features of this tool.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-33352474928181440272014-11-18T05:57:00.001-08:002014-11-18T05:57:09.519-08:00Standard Controllers in Salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Standard Controllers</h2>
<div style="text-align: justify;">
A StandardController object that is
automatically provided for standard and all custom objects, bindable to a
Visualforce page component with the “standardController” attribute. It
provides a reference to a single/list of record to a set of common
actions for data processing and default navigation.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>What are the tasks of standard controller?</strong></div>
<div style="text-align: justify;">
Standard controllers provides ability to
access and interact with structured business data contained in records
displays in the proper user interface.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Standard controller tasks:</strong> controlling data, controlling actions and controlling navigation.</div>
<h2 style="text-align: justify;">
<strong>Controlling Data: </strong></h2>
<div style="text-align: justify;">
Standard controllers fetches data and provide to the views such as page, list, dialog or forms.</div>
<div style="text-align: justify;">
<strong>Controlling data for a single record: </strong>One
of the key functionality of standard controllers is to provide the
data, and to facilitate binding a view’s controls to the records fields
for either display or input. We can associate a standard controller with
a visual force page by using “StandardController” attribute.</div>
<div style="text-align: justify;">
<span style="color: #993366;"><strong><apex:page standardController=”Account”> </strong><span style="color: black;">// standard object</span><strong><br />
<apex:page standardController=”customer__c”> </strong><span style="color: black;">// custom object</span></span></div>
<div style="text-align: justify;">
By using merge expressions we can add
fields to visualforce pages. This is the same merge syntax used in email
templates, formulas and any place that field values need to be merged
for expression evaluation. Below highlighted blue color syntax are merge
fields</div>
<pre class="codeBlock"><apex:outputField value="<strong>{!Account.Name}</strong>"/>
<apex:outputField value="<strong>{!Account.AccountNumber}</strong>"/>
<apex:inputField value="<strong>{!Account.Industry}</strong>"/>
<apex:inputField value="<strong>{!Account.Type}</strong>"/></pre>
<div style="text-align: justify;">
See the below syntax to represent represent related parent object fields.</div>
<pre class="codeBlock"><apex:inputField value="{!Account.Owner.Name}"/></pre>
<div style="text-align: justify;">
We can represent a related list in visualforce page by using below syntax.</div>
<pre class="codeBlock"><apex:relatedList list="Contacts"/></pre>
<div style="text-align: justify;">
To view output, after developing your
page , you need to pass related sobject record id with your salesforce
url. see below example.</div>
<div style="text-align: justify;">
https://c.apX.visual.force.com/<strong><span style="color: #993366;">apex/vfpage?id=XXXXXXXXXXXXXXX</span></strong></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Controlling data for list of records: </strong></div>
<div style="text-align: justify;">
We can manage list of records by using standard controller instruction set. We can define recordsetVar by using below syntax.</div>
<pre class="codeBlock"><apex:page standardController="Account" recordSetVar="accounts"></pre>
<div style="text-align: justify;">
Standard controllers provide below additional actions for list of records.</div>
<div style="text-align: justify;">
<strong>First:</strong> Displays the first page of records in the set.</div>
<div style="text-align: justify;">
<strong>Second:</strong> Displays the last page of records in the set.</div>
<div style="text-align: justify;">
<strong>Next:</strong> Displays the next page of records in the set.</div>
<div style="text-align: justify;">
<strong>Previous:</strong> Displays the previous page of records in the set.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Controlling Actions & Navigation:</strong></div>
<div style="text-align: justify;">
<strong>Actions: </strong><span style="font-size: 1rem; line-height: 1.714285714;">Standard controller responds to to user or programmatic commands initiated from a view such as “buttons & custom links.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
There are two types of actions available on objects through standard controllers instruction set.</div>
<div style="text-align: justify;">
Stateful Actions: Direct binding to a standard controller instance referenced by the page.</div>
<div style="text-align: justify;">
Stateless Actions: Indirect binding to the standard controller instruction set of the force.com engine.<strong> </strong></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Navigation: </strong><span style="font-size: 1rem; line-height: 1.714285714;">Standard Controllers navigate the user to any specific view associate with an action.</span><strong style="font-size: 1rem; line-height: 1.714285714;"> </strong></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-75029340103798050372014-11-18T05:56:00.001-08:002014-11-18T05:56:20.206-08:00Standard List Controllers<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
What is Standard List Controllers?</h2>
<div style="text-align: justify;">
By using standard standard list
controllers we can manage set of records. For every standard controller
there exists a standard list controller that allows you to create pages
that display and act on a set of records, such as list pages, related
lists, and mass action pages. We can associate define standard list
controller by using <strong>recordSetVar</strong>.</div>
<div style="text-align: justify;">
<br /></div>
<pre class="codeBlock"><apex:page standardController="Account" <strong><span style="color: #993366;">recordSetVar="accounts"</span></strong>></pre>
<pre class="codeBlock"> </pre>
<div style="text-align: justify;">
Standard list controller provides additional four pagination actions. Those are <strong>first, last, next and previous.</strong></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>We can use standard list controllers with the following objects.</strong></div>
<div style="text-align: justify;">
Account, Asset, Campaign, Case, Contact, Contract, Idea, Lead, Opportunity, Order, Product2, Solution, User, Custom Objects.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Standard list controller example:</strong></div>
<pre class="codeBlock"><apex:page standardController="Account" recordSetVar="accounts">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!Accounts}" var="a">
<apex:column headerValue="Account Name">
<apex:outputField value="{!a.name}"/>
</apex:column>
</apex:pageBlockTable>
<!-- pagination actions supported by standard list controller -->
<apex:pageBlockButtons >
<apex:commandButton value="First" action="{!first}"/>
<apex:commandButton value="Last" action="{!last}"/>
<apex:commandButton value="Next" action="{!next}"/>
<apex:commandButton value="previous" action="{!previous}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page></pre>
<div style="text-align: justify;">
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-35809877589969009982014-11-18T05:55:00.003-08:002014-11-18T05:55:39.401-08:00apex:selectList with standard list Controller<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
What is <apex:SelectList> tag?</h2>
Apex:selectList is used to display list options that allows user to select one.more values at a time. See below <strong>Syntax to use apex:select list</strong><br />
<span style="color: #993366;"><apex:selectList size=”1″ value=”{!filterId}”></span><br />
<span style="color: #993366;"><apex:actionSupport event=”onchange” reRender=”oppList”/></span><br />
<span style="color: #993366;"><apex:selectOptions value=”{!listviewoptions}”/></span><br />
<span style="color: #993366;"></apex:selectList></span><br />
<br />
Know more about <a href="http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectList.htm" target="_blank" title="selectLisst">selectList</a><br />
Below is the simple example to display list of records in visualforce page with list view & actions.<br />
<pre class="codeBlock"><apex:page standardController="Opportunity" recordSetVar="opportunities">
<apex:form >
<apex:pageBlock title="Displaying Opportunities">
<!-- Below <ape:selectList> tag is used to display listview -->
<apex:selectList size="1" value="{!filterId}">
<apex:actionSupport event="onchange" reRender="oppList"/>
<apex:selectOptions value="{!listviewoptions}"/>
</apex:selectList>
<!-- below code displays list of opportunnities -->
<apex:pageBlockTable value="{!opportunities}" var="opp" id="oppList">
<apex:column value="{!opp.Name}"/>
<apex:column value="{!opp.Account.Name}"/>
<apex:column value="{!opp.StageName}"/>
<apex:column value="{!opp.Type}"/>
<apex:column value="{!opp.ExpectedRevenue}"/>
</apex:pageBlockTable>
<!-- Using List action to display first, last, next & previous list -->
<apex:pageBlockButtons location="Bottom">
<apex:commandLink value="First" action="{!First}"/> &nbsp;
<apex:commandLink value="Next" action="{!Next}"/> &nbsp;
<apex:commandLink value="Previous" action="{!Previous}"/> &nbsp;
<apex:commandLink value="Last" action="{!Last}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-22655117858040074872014-11-18T05:54:00.003-08:002014-11-18T05:54:53.532-08:00Custom Controllers & Controller Extensions<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Custom Controllers</h2>
<div style="text-align: justify;">
What is custom controller? why we go for custom controllers?</div>
<div style="text-align: justify;">
Standard controllers provides only built in standard functionality to visualforce pages, such as <strong>Save, Edit, Cancel & Delete </strong>etc….</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
We cannot customize/develop our own
functionality by using standard controllers. By using custom controllers
we can write our own functionality or override existing functionality.
Custom controller is an Apex Class developed by us. See the below syntax
to define custom controller in visualforce page.</div>
<div style="text-align: justify;">
<strong><apex:page Controller=”ControllerName”></strong></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
What is controller extension?
Controller extension is custom/additional behavior to standard
controllers. Extension is an apex class. We can add number of extensions
to visualforce page. See below syntax to define extension.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong><apex:page Controller=”ControllerName” extensions=”Class1, Class2,..”></strong></div>
<div style="text-align: justify;">
We can use Stnadard controller/ Custom
Controller and extensions at a time. But we cannot use Standard
controller & Custom controller at a time. See below syntax to
understand.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="color: #339966;"><apex:page standardController=”ControllerName” extensions=”Class1, Class2,..”> <strong>Correct</strong></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="color: #339966;"> <apex:page Controller=”MYControllerName” extensions=”Class1, Class2,..”><strong> Correct syntax</strong></span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="color: red;"><apex:page standardController=”MYControllerName” Controller=”MyController”> <strong>Wrong</strong></span></div>
<h2 style="text-align: justify;">
<strong>What we can do by using Custom Controllers?</strong></h2>
– We can override existing functionality<br />
– We can create new functionality.<br />
– We can customize navigation.<br />
– We can use HTTP callouts & Web Services<br />
– We can have control for how information is accessed on the page.<br />
<h2>
Example to create custom controller:</h2>
In this example, I am creating a visualforce page to create &
save multiple accounts at a time by using visualforce page & Custom
controller.<br />
<strong>Code for Visualforce page</strong><br />
<pre class="codeBlock"><apex:page Controller="AddmultipleAccountsController">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!listAccount}" var="acc">
<apex:column headerValue="Account Name">
<apex:inputField value="{!acc.Name}"/>
</apex:column>
<apex:column headerValue="Account Number">
<apex:inputField value="{!acc.AccountNumber}"/>
</apex:column>
<apex:column headerValue="Account Type">
<apex:inputField value="{!acc.Type}"/>
</apex:column>
<apex:column headerValue="Industry">
<apex:inputField value="{!acc.Industry}"/>
</apex:column>
</apex:pageBlockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Add one more account" action="{!addAccount}"/>
<apex:commandButton value="Save Accounts" action="{!saveAccount}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page></pre>
<pre class="codeBlock"> </pre>
<strong>Code for custom controller:</strong><br />
public class AddmultipleAccountsController {<br />
Account account = new Account();<br />
public list<Account> listAccount{ get; set; }<br />
public AddmultipleAccountsController()<br />
{<br />
listAccount=new list<Account>();<br />
listAccount.add(account);<br />
}<br />
Public void addAccount()<br />
{<br />
Account acc = new Account();<br />
listAccount.add(acc);<br />
}<br />
public PageReference saveAccount() {<br />
for(Integer i=0; i<listAccount.size(); i++)<br />
{<br />
insert listAccount;<br />
}<br />
return Page.Allaccountssaved; // I am returning another vf page here.<br />
}<br />
}<br />
<strong>Out put of above code: </strong>We can add multiple accounts at a time by using this page like below.<br />
Here I am adding multiple rows and saving all records at time. We
cannot achieve this by using standard controller. So i have written
custom controller to achieve this.<br />
<img alt="Custom Controllers" class="aligncenter size-medium wp-image-1105" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/10/custom-controller-300x59.png" /><br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-24967019531127968332014-11-18T05:53:00.005-08:002014-11-18T05:53:57.188-08:00Now we can do deployments with Active jobs<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Doing deployments when Active job is running</h2>
<div style="text-align: justify;">
What is active job here? Any schedule job or apex job which is running in our salesforce system.</div>
<div style="text-align: justify;">
Generally in salesforce, we cannot
perform deployments when active jobs are there & we are trying to
deploy metadata related to active job in system. In this case we will
remove jobs from our environment and continue with deployments.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
But now, no need to stop schedule jobs
in our environments to perform deployment when active jobs are running.
In winter 15 release salesforce has provided a feature to continue with
deployments when jobs are running in production.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Enabling the deployment of components with corresponding active job.</div>
<div style="text-align: justify;">
To enable this go to <strong>setup -> deployment settings -> “Allow deployments of components</strong><br />
<strong>when corresponding Apex jobs are pending or in progress”</strong> check this check box and save.</div>
<div style="text-align: justify;">
Deployment connection is renamed as deployment settings. See the below image for reference.</div>
<div style="text-align: justify;">
<img alt="Deployment settings - active jobs" class="aligncenter size-full wp-image-1138" height="148" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/10/deployment-settings.png" width="204" /></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<img alt="Active jobs" class="aligncenter size-medium wp-image-1139" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/10/Active-jobs-300x40.png" /></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
I feel this is very useful option
when are doing deployments. No need to stop jobs during deployments.
But, this setting might cause apex jobs fail due to unsupported changes.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-60474043854292853912014-11-18T05:53:00.000-08:002014-11-18T05:53:11.063-08:00Quick Deployments in salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Quick Deploy – Deployments in less time</h2>
<div style="text-align: justify;">
What is quick deploy? By using this
option you can deploy components to production with running test classes
on your project release day. But you have to do successful validation
before your release day.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Generally in salesforce deploying code
to production very hard when your organization contain more test
methods. If your organization contain more test methods, then your
release will very long. But to avoid this, salesforce has provided quick
deploy option. By using this option you can deploy code to production
in very less time on your project release day.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
This quick deployment option is only
available for production environments. This not doesn’t applicable for
non production organization & deployments not required for apex
tests.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Salesforce has released this as a pilot
program. If you want to enable this option for your org, then you you
need to contact salesforce.com.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
See below screen to under stand quick deployment option.</div>
<div style="text-align: justify;">
<img alt="Quick Deployment" class="aligncenter size-medium wp-image-1144" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/10/Quick-deployment-300x155.png" /></div>
<div style="text-align: justify;">
If you did a successful validation of
your package, then you can deploy that same deployment without running
any test classes to your production. This option is valid for 4 days (96
hours) for successful validated deployment. Quick deployments are
available only for validations with test runs that have passed in the
last four days.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-37603754847500111412014-11-18T05:52:00.001-08:002014-11-18T05:52:30.492-08:00actionFunction tag in visualforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
actionFunction</h2>
<div style="text-align: justify;">
What is <apex:actionFunction> tag?
This tag defines JavaScript functions to be called from JavaScript
code. By using this tag you can call controllers methods from java
script code using an AJAX request .</div>
<div style="text-align: justify;">
This component must be a child of
<apex:form> tag. And we cannot place this tag inside an iteration
tag like <apex:pageBlockTable> & <apex:repet> now.
Earlier we were able to do this.But with api version 23 we cannot place
<apex:actionFunction> inside iteration tags.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Here I am providing an example, How to
use <apex:actionFunction> tag is visualforce. I have created
simple Lead form to enter lead details from custom page. Last name,
Company & email are mandatory fields in below page. If any miss
those required fields, I am displaying alert by Javascript and i am
calling method from java script to save the record. See below code to
understand, how <apex:actionFunction> will work.</div>
<div style="text-align: justify;">
<strong>Visualforce page code:</strong></div>
<pre class="codeBlock"><apex:page controller="InsertLeadController" showHeader="false">
<script type="text/javascript">
function validate()
{
if(document.getElementById('{!$Component.LF.LDB.Lname}').value == '' || document.getElementById('{!$Component.LF.LDB.comp}').value == '')
{
alert("LAST NMAE & Company are requird fields");
}
else
{
<strong><span style="color: red;">CallsubmitLead();</span></strong>
alert("Account has been inserted");
}
}
</script>
<apex:form id="LF">
<strong><span style="color: red;"><apex:actionFunction action="{!submitLead}" name="CallsubmitLead" reRender="LDB"/></span></strong>
<apex:pageBlock title="Lead Form - Enter lead details" id="LDB">
<table>
<tr>
<td><apex:outputText value="First Name"/></td>
<td><apex:inputText value="{!firstName}"/></td>
</tr>
<tr>
<td><apex:outputText value="Last Name"/></td>
<td><apex:inputText value="{!lastName}" id="Lname"/></td>
</tr>
<tr>
<td><apex:outputText value="Comapany"/></td>
<td><apex:inputText value="{!comapany}" id="comp"/></td>
</tr>
<tr>
<td><apex:outputText value="Mobile"/></td>
<td><apex:inputText value="{!mobile}"/></td>
</tr>
<tr>
<td><apex:outputText value="Lead Status"/></td>
<td><apex:selectList value="{!statusOptions}">
<apex:selectOptions value="{!items}"/>
</apex:selectList></td>
</tr>
</table>
<apex:commandButton value="Save" <strong><span style="color: red;">onclick="validate();</span></strong>"/>
</apex:pageBlock>
</apex:form>
</apex:page></pre>
<div style="text-align: justify;">
<strong>Controller Code:</strong></div>
<div style="text-align: justify;">
public class InsertLeadController {</div>
<div style="text-align: justify;">
public String statusOptions { get; set; }<br />
public String comapany { get; set; }<br />
public String mobile { get; set; }<br />
public String firstName{get;set;}<br />
public String lastName{get;set;}<br />
public Lead l = new Lead();</div>
<div style="text-align: justify;">
public List<SelectOption> getItems() {</div>
<div style="text-align: justify;">
List<SelectOption> options = new List<SelectOption>();<br />
options.add(new SelectOption(‘Open – Not Contacted’,’Open – Not Contacted’));<br />
options.add(new SelectOption(‘Working – Contacted’,’Working – Contacted’));<br />
options.add(new SelectOption(‘Closed – Converted’,’Closed – Converted’));<br />
options.add(new SelectOption(‘Closed – Not Converted’,’Closed – Not Converted’));<br />
return options;<br />
}</div>
<div style="text-align: justify;">
public PageReference submitLead() {</div>
<div style="text-align: justify;">
l.FirstName=firstName;<br />
l.LastName=lastName;<br />
l.Company=comapany;<br />
l.MobilePhone=mobile;<br />
l.Status=statusOptions;<br />
insert l;<br />
return null;<br />
}<br />
}</div>
<div style="text-align: justify;">
In this example, I am calling submitLead methods from javascript.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-61576685848743483582014-11-18T05:50:00.005-08:002014-11-18T05:50:40.772-08:00Managing session time out at profile level<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
Session settings at profile level – Winter 15 update</h2>
<div style="text-align: justify;">
Now you can manage session timeout at
profile level. Salesforce has provided this option in their winter 15
release. Earlier (before winter 15) we had only option to set this
change at organization level. But in winter 15, you can manage session
timeout at profile level. profile level changes override the
organization session settings. Until you set this on a profile, the
organization-wide Timeout value in the settings applies to users of the
profile. Once set, the this on a profile overrides the organization-wide
Timeout value for users of that profile. Changes to the
organization-wide Timeout value will not apply to users of a profile
with its own Session Timeout value.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
where we can find these settings at <strong>org level?</strong> To find these settings at org level go to <strong>setup ->Administer-> Security controls</strong>. here you will find timeout option. See the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="session timeout" class="aligncenter size-medium wp-image-1193" height="228" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/10/Session-timeout-300x228.png" width="300" /></div>
<div style="text-align: justify;">
Where we can find these settings at <strong>profile level?</strong></div>
<div style="text-align: justify;">
Go to setup -> administer-> Manage
Users -> profile -> edit -> go to session settings &
change time out value for profile. see below screen for reference.</div>
<div style="text-align: justify;">
<img alt="Session Time Out At Profile Level" class="aligncenter size-medium wp-image-1194" height="93" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/10/session-time-out-at-profile-level-300x93.png" width="300" /></div>
<div style="text-align: justify;">
This option will really helpful for administrators to manage session settings at profile level.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-74104755144706405632014-11-18T05:50:00.000-08:002014-11-18T05:50:00.054-08:00Password polices at profile level<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Now you can manage password policies at profile level in salesforce</h2>
<div style="text-align: justify;">
In winter’15 release salesforce has
provided this feature to mange password policies like password expire
in, history, length, complexity requirement, maximum invalid login
attempts and lockout effective period at profile level. Earlier this
option is available at organization level. Now with this winter’15
release this option is available at profile level also.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Until you set the password policies on
profile, the organization policies will apply to users. Once you set the
password policies at profile level, it will override organization
changes. After setting password policies at profile level, if you change
these settings at org – level, it won’t impact. profile settings will
only apply when set these settings at profile level.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How we can set this at organization level</strong></div>
<div style="text-align: justify;">
To find these settings at organization level, go to <strong>Settings -> Administer -> Under security controls</strong> you will find this option. see the below screen to understand.</div>
<div style="text-align: justify;">
<img alt="password policies" class="aligncenter size-medium wp-image-1198" height="170" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/11/password-policies-at-org-level-300x170.png" width="300" /> <strong> </strong></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How can set this at profile level:</strong></div>
<div style="text-align: justify;">
To find these settings at profile level, go to <strong>settings
-> Administer -> Manage users -> profiles -> Select the
profile you want to change and edit the profile to change these
settings.</strong> see the below screen for reference.</div>
<div style="text-align: justify;">
<img alt="password policies" class="aligncenter size-medium wp-image-1199" height="110" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/11/password-policies-at-profile-level-300x110.png" width="300" /></div>
<div style="text-align: justify;">
This option is available in Enterprise,
performance, Unlimited and Developer editions. Need below User
permissions required to edit session & password settings in
profiles.</div>
<div style="text-align: justify;">
Manage permission sets & PROFILES and manage password policies.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-8573897427744032972014-11-18T05:48:00.001-08:002014-11-18T05:48:54.014-08:00Fieldset in salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
What is a fieldset?</h2>
<div style="text-align: justify;">
In this section i will explain about what is a fieldset? How can we create that? and how can we use that in a visualforce page?</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Fieldset is a grouping of fields, you
can use this fieldset in visualforce page to display that group of
fields in that page. If you are using field set in visualforce to
display fields, then you can add, remove & reorder fields very
easily. No need to do code modifications to the page, In fieldset only
you can add, remove & reorder fields. Generally these field sets are
useful in managed packages. In manged packages , If you used field set
in visualforce pages, administrators can easily add, remove and reorder
fields in page. As an administrator, you can create or edit field sets
and also you can edit installed fieldsets.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How to create a fieldset?</strong></div>
<div style="text-align: justify;">
To create a fieldset, go to object, you
want create fieldset by clicking on new button. Enter required fields
and save. We will get below screen to add fields to field set.</div>
<div style="text-align: justify;">
<img alt="Fieldset In Salesforce" class="aligncenter size-medium wp-image-1207" height="146" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/11/Fieldset-in-salesforce-300x146.png" width="300" /></div>
<div style="text-align: justify;">
Using fieldsets is very easy & you can drag and drop to arrange fields in fieldsets.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>How to use field set in a visualforce page?</strong></div>
<div style="text-align: justify;">
Below code is simple visualforce, it explains about how to use fieldset in a visualforce page.</div>
<div style="text-align: justify;">
<apex:page id=”pageId” standardcontroller=”Registration__c”><br />
<apex:form id=”formId”><br />
<apex:pageblock id=”pb”><br />
<apex:pageBlockSection ><br />
<apex:repeat value=”<span style="color: red;">{!$ObjectType.Registration__c.FieldSets.Registration_req_fields}” var=”fs”</span>><br />
<apex:inputfield value=”{!Registration__c[fs]}”><br />
</apex:inputfield></apex:repeat><br />
</apex:pageBlockSection><br />
<apex:pageBlockButtons ><br />
<apex:commandButton value=”Submit Details” action=”{!Save}”/><br />
</apex:pageBlockButtons><br />
</apex:pageblock><br />
</apex:form><br />
</apex:page></div>
<div style="text-align: justify;">
The above code displays all fields in the field set. See the below screen to see the output of above code.</div>
<div style="text-align: justify;">
<img alt="Fieldset" class="aligncenter size-medium wp-image-1211" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/11/Fieldset-300x64.png" /></div>
<div style="text-align: justify;">
No need to change the code to re arrange
fields in this page. What ever the order you created/edited in field
set, the same order will display on this page.</div>
<div style="text-align: justify;">
We can easily make fields required. It
is drag drop tool like page layout. To make required, double click on
the field and check the required check box.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<strong>Important point about field sets:</strong></div>
<div style="text-align: justify;">
- In the field set, you can span to
fields that reference multiple objects. When you span a field into a
field set that references multiple objects, the only field you can span
to is the <span class="keyword parmname">Name</span> object.</div>
<div style="text-align: justify;">
- The total number of cross object spans within the <span class="keyword parmname">In the Field Set</span> container can’t exceed 25.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-55275769068886890362014-11-18T05:44:00.002-08:002014-11-18T05:44:57.880-08:00Profiles, Permission sets & Roles<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
What is profile?</h2>
<div style="text-align: justify;">
A profile is a group/collection of settings and permissions that define what a user can do in salesforce. A profile controls “<b>Object
permissions, Field permissions, User permissions, Tab settings, App
settings, Apex class access, Visualforce page access, Page layouts,
Record Types, Login hours & Login IP ranges.</b></div>
<div style="text-align: justify;">
You can define profiles by user’s job function. For example System Administrator, Developer, Sales Representative.</div>
<div style="text-align: justify;">
A profile can be assigned to many users, but user can be assigned single profile at atime.</div>
<div style="text-align: justify;">
<b>Types of profiles in salesforce</b></div>
<div style="text-align: justify;">
<b>1. Standard profiles:</b> By default salesforce provide below standard profiles. We cannot deleted standard ones.</div>
<div style="text-align: justify;">
<b>Read Only, Standard User, Marketing User, Contract Manager, Solution Manager & System Administrator. </b></div>
<div style="text-align: justify;">
Each of these standard one includes a default set of permissions for all of the standard objects available on the platform.</div>
<div style="text-align: justify;">
<b>2. Custom Profiles: </b>Custom ones defined by us. They can be deleted if there are no users assigned with that particular one.</div>
<div style="text-align: justify;">
<b>Navigation: </b>setup -> Administer -> Manage users -> Profiles</div>
<div style="text-align: justify;">
<img alt="profile" class="aligncenter size-full wp-image-921" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/profile-1.png" height="251" width="178" /></div>
<div style="text-align: justify;">
<b>What is Permission Sets?</b></div>
<div style="text-align: justify;">
Permission set is also very similar to
profile. What ever you can manage at profiles (Like Object permissions,
Field Permissions, User permissions, Tab settings, App settings, Apex
class permission, visualforce permission) the same you can manage here
also. But the main difference between these two is that user can have
only one profile and can have multiple permission sets at time.</div>
<div style="text-align: justify;">
So we can define profiles to grant
minimum permissions and settings that every type of user needs, then we
can use permission set to grant additional access.</div>
<div style="text-align: justify;">
<b>Examples: </b></div>
<div style="text-align: justify;">
1. We have many user in your
organization with some fundamental job functions. We can assign all of
then with one profile that grants them all access to do their job. But
some set of people are working on special apps or some
special functionality, for this type of special users we can create
permission sets and can be assigned to them.</div>
<div style="text-align: justify;">
2. Some users need some temporary access
to specific set of fields and objects we can create permission set
with those object & field access and we can assign that specific
users.</div>
<div style="text-align: justify;">
<b>Navigation: S</b>etup -> Administer -> Manage users -> Permission sets</div>
<div style="text-align: justify;">
<img alt="permission set" class="aligncenter size-full wp-image-926" src="http://www.salesforcetutorial.com/wp-content/uploads/2014/08/permissin-set.png" /></div>
<h2 style="text-align: justify;">
<b>What is Role Hierarchies?</b></h2>
<div style="text-align: justify;">
A role hierarchies controls level of
visibility that users have to an organization data. By defining role
hierarchies we can share access to records. Users assigned to roles near
the top of hierarchies like (CEO, executives and other higher level
roles) get to access the data of all users who fall directly below them i
hierarchy.</div>
<div style="text-align: justify;">
<b>Role hierarchies enable following behaviors.</b></div>
<div style="text-align: justify;">
A manager will always have access to the
same data as his or her employees, regardless of the org-wide default
settings. For custom objects, you can override this behavior
by deselecting the Grant Access Using Hierarchies check box. However, we
want our role hierarchy to apply to all of our custom objects, so leave
the check boxes selected.</div>
<div style="text-align: justify;">
Users who tend to need access to the
same types of records can be grouped together—we’ll use these groups
later when we talk about sharing rules.</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-505878126589856855.post-427231494230720302014-11-18T05:34:00.002-08:002014-11-18T05:34:36.900-08:00Apex<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">
<b>1.<span style="font-size: 7pt; font-weight: normal;"> </span></b><b>What is the biggest difference between Apex and most programming languages?</b></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 40.5pt; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span>Apex
provides built-in Data Manipulation Calls(Like Insert,Update,Delete
etc.,)without establishing any connections to database and closing the
connections.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 40.5pt; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span>It
provides default exception handling which throws an exception message
automatically onto the screen unlike in other programming languages
which throws error on to error console and shows abnormality.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 40.5pt;">
But, Apex handles the exception and shows us on the page.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 40.5pt; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span>Embedded
SOQL (Salesforce Object Query Language)and SOSL(Salesforce Object
Search language) queries which returns the SObject results.</div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 40.5pt; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span>Apex is interpreted(compiled), executed and Controller by Force.com platform.</div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 40.5pt; text-indent: -0.25in;">
</div>
<div class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">
<b>2.<span style="font-size: 7pt; font-weight: normal;"> </span></b><b>Where can Apex be authored? Where can it be executed?</b></div>
<div class="MsoNormal">
Apex can be authored on Force.com editor which is provided in Salesforce SETUP pane on left side. </div>
<div align="center" class="MsoListParagraphCxSpFirst" style="margin-left: 40.5pt; text-align: center;">
<img height="320" src="file:///C:/DOCUME%7E1/Rekha/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image002.jpg" width="161" /></div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 40.5pt;">
Apex classes are executed on Force.com platform. It cannot be executed on Local machines using tomcat or any other servers.</div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 40.5pt;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>3.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>Why are governor limits important? What are they based on?</b><br />
<span style="text-indent: -0.25in;">A.</span><span style="font-size: 7pt; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">Governor
limits are important because it controls the user to use the database
interactions with limited control. Since, Force.com is a cloud platform ,
it offers multi-tenancy which provides unit platform for various
Force.com tenants. If the governor limits are not set, and if most users
start interacting with cloud database with no limit, then obvious
burden will be imposed on Cloud.So, governor limits are important which
determine the total pages visited by a client and total number of page
navigations, a client can do in a day, total data base interactions that
can be made in a single go.</span></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
Governor
limits are based on the type of the Org we use.Generally, testing org
contains different governer limits(more), and production org contains
different governor limits(less).</div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>4.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>List a few characteristics of Apex that is different than other programming languages.</b><br />
<span style="text-indent: -0.25in;">A.</span><span style="font-size: 7pt; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">Apex is strongly typed language with direct references TO Sobject and fields names.</span><br />
Apex is interpreted, Executed, Controlled by Force.com platform.<br />
Apex scripts can be saved against different versions of the Force.com API.</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>5.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>How would an external program access functionality on Force.com platform?</b></div>
<div class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt;">
We have a concept called Web Services. Using this extended
functionality, we can make external program access the functionality on
Force.com platform.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;">
We
will generate WSDL document(Web Services Description Language) which
will be exposed to host environment which results in extending the
capability of accessing Force.com platform from external program.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;">
<br />
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;">
<br />
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt;">
<br />
</div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt;">
<br />
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>6.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>What are governor limits? Why are these important in a multi-tenant environment?</b><br />
<span style="text-indent: -0.25in;">A.</span><span style="font-size: 7pt; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">Governor
limits are the database limits that are applied to the users who use
Force.com platform. Governor limits simply means the limited database
calls that a developer/user do.</span><br />
These governor limits are important because unlimited and free
access to database many number of times from each time will slow down
the database effectiveness.So,to preserve the database effectiveness,
governor limits are important in multi-tenant environment.</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>7.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>What is Run time type information? How do obtain it in Apex?</b></div>
<div class="MsoListParagraph" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
A.<span style="font-size: 7pt;"> </span>Run
time type information refers to a system that keeps the information
about an object’s data type in memory at run time. This run time
information deals to integers, strings and generic objects.</div>
<div class="MsoListParagraph" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>8.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>How do you override a method in Apex?</b><br />
<span style="text-indent: -0.25in;">A.</span><span style="font-size: 7pt; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">With the help of the OVERRIDE key word in method signature, we can override a method in Apex.</span><br />
For example, we have a method public void abc(){</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
},</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
If we want to override the method, we can do like below:</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
Public override void abc(){</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
}</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 0.25in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
<b>9.<span style="font-size: 7pt; font-weight: normal;"> </span></b><b>What are the ways in which Apex can be invoked?</b><br />
<span style="text-indent: -0.25in;">A.</span><span style="font-size: 7pt; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">We can invoke apex in 4 ways:</span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 40.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
a.<span style="font-size: 7pt;"> </span>Triggers: By
writing the apex triggers,and calling them on the 7 pre defined events
of creating/modifying a record, we can invoke apex.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 40.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
b.<span style="font-size: 7pt;"> </span>Apex
Schedule: We can schedule Apex code to be run at a particular point/for
a particular period of time. We need to write some Apex code and
schedule them using Apex Scheduler.By this way, we can invoke apex.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 40.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
c.<span style="font-size: 7pt;"> </span>Anonymous
Blocks: Anonymous Block refers to a block, from where we can invoke
apex by writing the logic we need. Example is as below:</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in;">
<br />
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 1in; margin-right: 0in; margin-top: 0in;">
<img height="80" src="file:///C:/DOCUME%7E1/Rekha/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image004.jpg" width="623" /></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 40.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
d.<span style="font-size: 7pt;"> </span>Apex
in Ajax: For Apex, we have ajax took kit, from where we can do Apex
calls. This Ajax toolkit can be used on the visualforce page using
javascript notations. Using this Apex in Ajax, we can invoke Apex.</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; margin-left: 40.5pt; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>10.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>What are some of the limitations of code that you can call via the anonymous block?</b><br />
<span style="line-height: 200%; text-indent: -0.25in;">A.</span><span style="font-size: 7pt; line-height: normal; text-indent: -0.25in;"> </span><span style="line-height: 200%; text-indent: -0.25in;">Anonymous
Block’s code execute with current user’s permission. So, if the user
does not have field-level permissions or does not have profile
permissions, then the code in anonymous block fails.</span></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<span style="line-height: 200%; text-indent: -0.25in;"> </span></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>11.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>How do you expose functionality on Force.com to be consumed by external clients?</b><br />
<span style="text-indent: -0.25in;">A.</span><span style="font-size: 7pt; text-indent: -0.25in;"> </span><span style="text-indent: -0.25in;">We
have a concept called Web Services. Using this extended functionality,
we can make external program access the functionality on Force.com
platform.</span></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt;">
We will generate WSDL document(Web Services Description Language)
which will be exposed to host environment which results in
extending the capability of accessing Force.com platform from external
program.</div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>12.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>What would the syntax be to create a new class named MyNewClass which should be public?</b><br />
<span style="line-height: 200%; text-indent: -0.25in;">A.</span><span style="font-size: 7pt; line-height: normal; text-indent: -0.25in;"> </span><span style="line-height: 200%; text-indent: -0.25in;">Syntax is:</span><br />
<span style="line-height: 200%;"> Public class MyNewClass{</span></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto;">
}</div>
<div class="MsoListParagraphCxSpLast" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto;">
Here
public is the access modifier for the class. And CLASS is the keyword
to designate a class and MyNewClass is the name of the class.</div>
<div class="MsoListParagraphCxSpLast" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 58.5pt; margin-right: 0in; margin-top: 0in; mso-add-space: auto;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<b>13.<span style="font-size: 7pt; font-weight: normal; line-height: normal;"> </span></b><b>What is the difference between the global and public access modifier keywords?</b><br />
<span style="line-height: 200%; text-indent: -0.25in;">A.</span><span style="font-size: 7pt; line-height: normal; text-indent: -0.25in;"> </span><span style="line-height: 200%; text-indent: -0.25in;">We have different access modifiers like global, private, public.</span><br />
<span style="line-height: 200%;"> If we use the access modifier as
Global, it can be used anywhere in the org. Generally, Global is used
for web-services since one class needs to handle some other parts of
apex in the org. </span><span style="line-height: 200%;">Whenever we use Public keyword, then the access is limited to the particular class and cannot be used outside the related class.</span></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-list: l5 level1 lfo1; tab-stops: list .25in; text-indent: -.25in;">
<span style="line-height: 200%;"> </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; margin-left: 0.25in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
<b>14.<span style="font-size: 7pt; font-weight: normal;"> </span></b><b>Is casting between a String and Integer allowed? </b><br />
Allowed</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; margin-left: 0.25in; margin-right: 0in; margin-top: 0in; text-indent: -0.25in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in;">
<b> 15 .What are different data types for Apex variables?</b></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in;">
Premitive and non premitive data types</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in;">
<b>16.What keywords are used to declare a constant? </b></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 31.5pt; margin-right: 0in; margin-top: 0in;">
Final and static</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 31.5pt; margin-right: 0in; margin-top: 0in;">
</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in;">
<b>17.What special characters are used to surround SOQL or SOSL queries?</b></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 31.5pt; margin-right: 0in; margin-top: 0in;">
[ and ]</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>What is the maximum number of rows that can be brought back by a SOQL query?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>50000</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>What advantage does using a variable list in a for loop have over a single variable?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>Using list ,we save retrived data in a single list variable</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>What is different about a static method?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>Static methods are not used in web services</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>What are the two types of iterations that can be performed in a for loop with a SOQL query?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>Variable and variable_list</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>Does Apex use explicit transactional calls such as commit and rollback?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>NO</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>The assert family of methods belong to which class?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>System</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="color: red; font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: red;">What do the Limit class methods help you to manage?</span></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="color: red; font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: red;">How do you access the records that cause the trigger to execute? </span></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>What are the seven different types of trigger events?</div>
<div class="MsoListParagraphCxSpFirst" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>Before insert,before update,before delete</div>
<div class="MsoListParagraphCxSpLast" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>After insert,after update,after delete,after undelete</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>How do you specify that a trigger is a “bulk trigger?”</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>By default all triggers are bulk triggers</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="color: red; font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: red;">Under what identity do triggers execute? What ramifications does that have?</span></div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>Is it necessary to import a WSDL to perform a callout?</div>
<div class="MsoListParagraph" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>NO</div>
<div class="MsoNormal" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l6 level1 lfo14; tab-stops: list 40.5pt; text-indent: -.25in;">
<span style="font-family: Wingdings;">Ø<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>What does the @future annotation do? What are the other annotations available with Apex?</div>
<div class="MsoListParagraphCxSpFirst" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>@future is used to execute methods asynchronously.</div>
<div class="MsoListParagraphCxSpLast" style="line-height: 200%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; mso-add-space: auto; mso-list: l6 level2 lfo14; text-indent: -.25in;">
<span style="font-family: 'Courier New';">o<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span>@istest,@readonly,@remoteAction,@depricited</div>
:11� :#t b 0# �O id
black 1.0pt; border-top:none;mso-border-top-alt:solid black
.5pt;mso-border-alt:solid black .5pt; padding:0in 5.4pt 0in 5.4pt'>
<br />
<div class="MsoListParagraphCxSpFirst" style="margin-left: 0in; mso-add-space: auto;">
Total Heap Size</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 0in; mso-add-space: auto;">
300000 Bytes</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 0in; mso-add-space: auto;">
3MB</div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 0in; mso-add-space: auto;">
1.5MB</div>
</div>
Unknownnoreply@blogger.com0