<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4720328723512978498</id><updated>2024-09-20T15:44:50.563-07:00</updated><title type='text'>Salesforce.com Hints</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rajeshkaliyaperumal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rajeshkaliyaperumal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09479060959772400380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4720328723512978498.post-4053464881003853184</id><published>2012-08-02T05:14:00.000-07:00</published><updated>2012-08-02T05:15:12.462-07:00</updated><title type='text'>Pagination in Visualforce Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Salesforce.com introduced the StandardSetController in Winter ’09 . The new pagination 
feature is pretty powerful and easy to use with standard as well as 
custom objects. Even though Jon Mountjoy has a &lt;a href=&quot;http://blog.sforce.com/sforce/2008/09/visualforce-pag.html&quot; target=&quot;_blank&quot;&gt;good blog post here&lt;/a&gt;,&amp;nbsp;there appears to be very little documentation or examples for pagination.&lt;br /&gt;

I threw together a small demo that allows you to page through the 
query results and select multiple items to process. Instead of simply 
returning the list of sObjects from the query locator’s current set, a 
collection of wrapper objects are returned enabling the user to check 
items for processing.&lt;br /&gt;

&lt;strong&gt;You can &lt;/strong&gt;&lt;a href=&quot;http://jeffdouglas-developer-edition.na5.force.com/examples/category_paging&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;run this demo&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; on my developer site.&lt;/strong&gt;&lt;br /&gt;

&lt;a href=&quot;http://blog.jeffdouglas.com/wp-content/uploads/2009/07/paging1.png&quot; rel=&quot;lightbox[1012]&quot;&gt;&lt;img alt=&quot;paging1&quot; class=&quot;alignnone size-full wp-image-1015&quot; height=&quot;179&quot; src=&quot;http://blog.jeffdouglas.com/wp-content/uploads/2009/07/paging1.png&quot; title=&quot;paging1&quot; width=&quot;544&quot; /&gt;&lt;/a&gt;&lt;br /&gt;

&lt;strong&gt;PagingController.cls – Custom Controller&lt;/strong&gt;&lt;br /&gt;


&lt;div class=&quot;wp_syntax&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;line_numbers&quot;&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
&lt;/pre&gt;
&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre class=&quot;java&quot; style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp;
public with sharing class PagingController {
&amp;nbsp;
 List&amp;lt;categoryWrapper&amp;gt; categories {get;set;}
&amp;nbsp;
 // instantiate the StandardSetController from a query locator
 public ApexPages.StandardSetController con {
  get {
   if(con == null) {
    con = new ApexPages.StandardSetController(Database.getQueryLocator([Select Id, Name FROM Cat3__c Order By Name limit 100]));
    // sets the number of records in each page set
    con.setPageSize(5);
   }
   return con;
  }
  set;
 }
&amp;nbsp;
 // returns a list of wrapper objects for the sObjects in the current page set
 public List&amp;lt;categoryWrapper&amp;gt; getCategories() {
  categories = new List&amp;lt;categoryWrapper&amp;gt;();
  for (Cat3__c category : (List&amp;lt;cat3__c&amp;gt;)con.getRecords())
   categories.add(new CategoryWrapper(category));
&amp;nbsp;
  return categories;
 }
&amp;nbsp;
 // displays the selected items
  public PageReference process() {
   for (CategoryWrapper cw : categories) {
    if (cw.checked)
     ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO,cw.cat.name));
   }
   return null;
  }
&amp;nbsp;
 // indicates whether there are more records after the current page set.
 public Boolean hasNext {
  get {
   return con.getHasNext();
  }
  set;
 }
&amp;nbsp;
 // indicates whether there are more records before the current page set.
 public Boolean hasPrevious {
  get {
   return con.getHasPrevious();
  }
  set;
 }
&amp;nbsp;
 // returns the page number of the current page set
 public Integer pageNumber {
  get {
   return con.getPageNumber();
  }
  set;
 }
&amp;nbsp;
 // returns the first page of records
  public void first() {
   con.first();
  }
&amp;nbsp;
  // returns the last page of records
  public void last() {
   con.last();
  }
&amp;nbsp;
  // returns the previous page of records
  public void previous() {
   con.previous();
  }
&amp;nbsp;
  // returns the next page of records
  public void next() {
   con.next();
  }
&amp;nbsp;
  // returns the PageReference of the original page, if known, or the home page.
  public void cancel() {
   con.cancel();
  }
&amp;nbsp;
}&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;strong&gt;CategoryWrapper.cls – Wrapper class for the Categories&lt;/strong&gt;&lt;br /&gt;


&lt;div class=&quot;wp_syntax&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;line_numbers&quot;&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
&lt;/pre&gt;
&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre class=&quot;java&quot; style=&quot;font-family: monospace;&quot;&gt;public class CategoryWrapper {
&amp;nbsp;
    public Boolean checked{ get; set; }
    public Cat3__c cat { get; set;}
&amp;nbsp;
    public CategoryWrapper(){
        cat = new Cat3__c();
        checked = false;
    }
&amp;nbsp;
    public CategoryWrapper(Cat3__c c){
        cat = c;
        checked = false;
    }
&amp;nbsp;
    public static testMethod void testMe() {
&amp;nbsp;
     CategoryWrapper cw = new CategoryWrapper();
     System.assertEquals(cw.checked,false);
&amp;nbsp;
     CategoryWrapper cw2 = new CategoryWrapper(new Cat3__c(name=&#39;Test1&#39;));
     System.assertEquals(cw2.cat.name,&#39;Test1&#39;);
     System.assertEquals(cw2.checked,false);
&amp;nbsp;
    }
&amp;nbsp;
}&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;strong&gt;Category_Paging.page – Visualforce page&lt;/strong&gt;&lt;br /&gt;


&lt;div class=&quot;wp_syntax&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;line_numbers&quot;&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
&lt;/pre&gt;
&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre class=&quot;java&quot; style=&quot;font-family: monospace;&quot;&gt;&amp;lt;apex:page controller=&quot;PagingController&quot;&amp;gt;
  &amp;lt;apex:form &amp;gt;
    &amp;lt;apex:pageBlock title=&quot;Paging through Categories of Stuff&quot;&amp;gt;
&amp;nbsp;
      &amp;lt;apex:pageBlockButtons location=&quot;top&quot;&amp;gt;
        &amp;lt;apex:commandButton action=&quot;{!process}&quot; value=&quot;Process Selected&quot;/&amp;gt;
        &amp;lt;apex:commandButton action=&quot;{!cancel}&quot; value=&quot;Cancel&quot;/&amp;gt;
      &amp;lt;/apex:pageBlockButtons&amp;gt;
      &amp;lt;apex:pageMessages /&amp;gt;
&amp;nbsp;
      &amp;lt;apex:pageBlockSection title=&quot;Category Results -  Page #{!pageNumber}&quot; columns=&quot;1&quot;&amp;gt;
        &amp;lt;apex:pageBlockTable value=&quot;{!categories}&quot; var=&quot;c&quot;&amp;gt;
          &amp;lt;apex:column width=&quot;25px&quot;&amp;gt;
            &amp;lt;apex:inputCheckbox value=&quot;{!c.checked}&quot;/&amp;gt;
          &amp;lt;/apex:column&amp;gt;
          &amp;lt;apex:column value=&quot;{!c.cat.Name}&quot; headerValue=&quot;Name&quot;/&amp;gt;
        &amp;lt;/apex:pageBlockTable&amp;gt;
      &amp;lt;/apex:pageBlockSection&amp;gt;
    &amp;lt;/apex:pageBlock&amp;gt;
&amp;nbsp;
    &amp;lt;apex:panelGrid columns=&quot;4&quot;&amp;gt;
    &amp;lt;apex:commandLink action=&quot;{!first}&quot;&amp;gt;First&amp;lt;/apex:commandlink&amp;gt;
    &amp;lt;apex:commandLink action=&quot;{!previous}&quot; rendered=&quot;{!hasPrevious}&quot;&amp;gt;Previous&amp;lt;/apex:commandlink&amp;gt;
    &amp;lt;apex:commandLink action=&quot;{!next}&quot; rendered=&quot;{!hasNext}&quot;&amp;gt;Next&amp;lt;/apex:commandlink&amp;gt;
    &amp;lt;apex:commandLink action=&quot;{!last}&quot;&amp;gt;Last&amp;lt;/apex:commandlink&amp;gt;
    &amp;lt;/apex:panelGrid&amp;gt;
&amp;nbsp;
  &amp;lt;/apex:form&amp;gt;
&amp;lt;/apex:page&amp;gt;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajeshkaliyaperumal.blogspot.com/feeds/4053464881003853184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4720328723512978498/4053464881003853184?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/4053464881003853184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/4053464881003853184'/><link rel='alternate' type='text/html' href='http://rajeshkaliyaperumal.blogspot.com/2012/08/pagination-in-visualforce-page.html' title='Pagination in Visualforce Page'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09479060959772400380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4720328723512978498.post-1703034494722096709</id><published>2012-07-25T07:18:00.001-07:00</published><updated>2012-07-25T07:18:15.324-07:00</updated><title type='text'>Lock a Record in Salesforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
There are three ways to lock a record in Salesforce&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
1) Trigger&lt;br /&gt;
2) Record Types&lt;br /&gt;
3) Validation Rules&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;strong&gt;Trigger&lt;/strong&gt;&lt;br /&gt;
This is the first option the would crawl in to peoples mind whenever 
there is record locking involved is Trigger. This might be an option to 
lock a record but writing lot of triggers might bring us close to 
governor limits. Hence, this would be the last option for me.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;strong&gt;Record Types&lt;/strong&gt;&lt;br /&gt;
Lets assume that the record has a check box call ‘Restrict’. Create a 
Read Only record and create a workflow rules that changes the record 
type to ‘Read Only’ if the ‘Restrict’ check box is checked.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;strong&gt;Validation Rules&lt;/strong&gt;&lt;br /&gt;
Write a validation rules saying (account.yourfield__c, true), then display an error message saying “Record is read only”&lt;/div&gt;
&lt;br /&gt;





&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajeshkaliyaperumal.blogspot.com/feeds/1703034494722096709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4720328723512978498/1703034494722096709?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/1703034494722096709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/1703034494722096709'/><link rel='alternate' type='text/html' href='http://rajeshkaliyaperumal.blogspot.com/2012/07/lock-record-in-salesforce.html' title='Lock a Record in Salesforce'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09479060959772400380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4720328723512978498.post-2110993130516388416</id><published>2012-07-24T04:44:00.001-07:00</published><updated>2012-07-24T04:44:00.298-07:00</updated><title type='text'>Salesforce Interview Questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;1.What is the difference between map and set in&amp;nbsp; Salesforce &amp;nbsp;collections.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Map:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;p&quot;&gt;

A map is a collection of key-value pairs where each unique key maps to a
 single value. Keys can be any primitive data type, while values can be a
 primitive, sObject, collection type or an &lt;span class=&quot;ph&quot;&gt;Apex&lt;/span&gt; object. For example, the following table represents a map of countries and currencies:&lt;/div&gt;
&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; class=&quot;featureTable&quot; summary=&quot;&quot;&gt;&lt;tbody class=&quot;tbody&quot;&gt;
&lt;tr class=&quot;row&quot;&gt;                         &lt;td class=&quot;entry&quot;&gt;&lt;b class=&quot;ph b&quot;&gt;Country (Key)&lt;/b&gt;                         &lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;United States&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Japan&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;France&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;England&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;India&#39;&lt;/td&gt;                     &lt;/tr&gt;
&lt;tr class=&quot;row&quot;&gt;                         &lt;td class=&quot;entry&quot;&gt;&lt;b class=&quot;ph b&quot;&gt;Currency (Value)&lt;/b&gt;                         &lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Dollar&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Yen&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Euro&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Pound&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Rupee&#39;&lt;/td&gt;                     &lt;/tr&gt;
&lt;/tbody&gt;             &lt;/table&gt;
&lt;div class=&quot;p&quot;&gt;

Similar to lists, map values can contain any collection, and can be 
nested within one another. For example, you can have a map of Integers 
to maps, which, in turn, map Strings to lists. A map can only contain up
 to five levels of nested collections inside it.&lt;/div&gt;
&lt;div class=&quot;p&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/goog_873980601&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot;&gt;

&lt;a href=&quot;http://www.salesforce.com/us/developer/docs/apexcode/index.htm%20&quot; target=&quot;_blank&quot;&gt;http://www.salesforce.com/us/developer/docs/apexcode/index.htm &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;p&quot;&gt;

&lt;b&gt;Set:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot;&gt;

A set is an unordered collection of primitives or sObjects that do not 
contain any duplicate elements. For example, the following table 
represents a set of String, that uses city names:&lt;/div&gt;
&lt;table cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; class=&quot;featureTable&quot; summary=&quot;&quot;&gt;&lt;tbody class=&quot;tbody&quot;&gt;
&lt;tr class=&quot;row&quot;&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;San Francisco&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;New York&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Paris&#39;&lt;/td&gt;                         &lt;td class=&quot;entry&quot;&gt;&#39;Tokyo&#39;&lt;/td&gt;                     &lt;/tr&gt;
&lt;/tbody&gt;             &lt;/table&gt;
To declare a set, use the &lt;samp class=&quot;codeph apex_code&quot;&gt;Set&lt;/samp&gt; keyword followed by the primitive data type name within &amp;lt;&amp;gt; characters. For example:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;div class=&quot;p&quot;&gt;

&lt;a href=&quot;http://www.salesforce.com/us/developer/docs/apexcode/index.htm&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;http://www.salesforce.com/us/developer/docs/apexcode/index.htm&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;2. Why Use Triggers?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;Triggers are used to perform 
immediate actions based on previous action e.g. field update. An apex 
language is used to write triggers&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;Eg: Account merges&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/%20http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers.htm%20&quot;&gt;http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers.htm &lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;3. What are different types of Triggers?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;There are two types of triggers &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;a) Before trigger- is used before database operation&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;b) After trigger-is used&amp;nbsp; &lt;/span&gt; to access field values
that are set by the database (such as a record&#39;s &lt;samp class=&quot;codeph apex_code&quot;&gt;Id&lt;/samp&gt; or &lt;samp class=&quot;codeph apex_code&quot;&gt;lastUpdated&lt;/samp&gt; field), and to affect changes in other records,
such as logging into an audit table or firing asynchronous events
with a queue.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;4. Why Use Visual Force?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;Visual force is a Sales force UI 
markup language using visual force we can construct&amp;nbsp;&amp;nbsp; WebPages. In Sales
 force MVC architecture Visual force represents View.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;5. How do you handle errors?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;Error handing is done directly 
displaying in Visual force page using Apex Pages methods &amp;nbsp;&amp;nbsp;to end users 
or displaying in debug logs.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.salesforce.com/us/developer/docs/pages/Content/apex_methods_system_apexpages.htm?SearchType=Stem&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;http://www.salesforce.com/us/developer/docs/pages/Content/apex_methods_system_apexpages.htm?SearchType=Stem&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;

&lt;span style=&quot;font-family: Calibri;&quot;&gt;6. What is a Component?&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In sales force component is a reusable piece of code developed using Visual force and Apex controller.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;7.Tell me about a project with 
Salesforce in which you led the architecture that was not explicitly 
limited to the Salesforce infrastructure.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;8.How long ago did you work on the above mentioned project?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;9.Tell me about inner-department communications and your approach to communicating with non-technical team members.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;10.What measures have you taken to make your software products more easily maintainable?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;11.What development processes have 
you used in your recent projects? Were any tools used to support these 
processes? If so can you name some of the advantages and short comings 
of the tool/ tools?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;12.What is an junction object?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;13.What is the difference between master detail relationship and look up relationship. ?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;a href=&quot;https://login.salesforce.com/help/doc/en/overview_of_custom_object_relationships.htm&quot;&gt;https://login.salesforce.com/help/doc/en/overview_of_custom_object_relationships.htm&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;14.How will you handle 10001 SOQL&amp;nbsp; problem in apex?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;15. Define force.com and Salesforce.com?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;16.Explain some examples&amp;nbsp; for work-flow rules?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;17.What is the use of&amp;nbsp; future method?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;a href=&quot;http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm&quot;&gt;http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;18.What is abstract class?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;19.Explain object oriented concepts in sales force how will you implement this?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;20.How will you import and export data between two systems eg: SFDC and SQL?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;21.What is appexchange?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;22.Explain about cloud?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;23.Explain about validation rules in salesforce?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;24.What is the difference between roles and profiles?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;25.What is the difference between record level ,field level, object level security?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;26.How will you use web services in sales force.com?.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;27.Can you explain about limitation why this limitation placed in sales force.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;28.what is view state in sales force?.It there is any limitation after winter11?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;29.What is the difference between Role and Profile?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;30.How you handle part of page refresh using VF?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;31.How you can define a trigger is executed successfully?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;32.Explain about yours current project?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;33.How do you rate yours self in apex,VF?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;34.How you can&amp;nbsp; deal with project dead lines?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;35.How you can use external WSDL files in Sales force?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;36.What is difference between rest full and soap API?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;37.What is yours Strong point Sales force?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;38.How you can with SQL injections in Sales force?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;39.Can you explain test methods in salesforce?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;40.How did you display error messages in salesforce? On VF Pages?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Apex.Pages&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;41.Can you explain relationships in salesforce?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;42.What are SOQL limitations?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;43.How can bypass SOQL statement to fetch more 1000 records?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;44.What job did you like more in your carrier?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;45.Can you explain a scenario integrating login method to third party application.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;46.Can you explain about SFDC controllers?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;47.Can you explain about sales process?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;48.What is a set in salesforce deployments?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;49.How many ways you can invoke an work flow?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;50.What are governor limits can you explain about it?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;51.East Sales Team can&#39;t access west sales team data how do you configure it?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;52.What is Role,Profile,Security?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;53.I have an contact .It phone number field is empty how you can get phone number from an related account?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;54.How do you handle SOQL problem in Trigger?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;55.How you can access JQuery in VF page?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;56.What is change set in salesforce? &lt;/span&gt;&lt;br /&gt;
57. What is transient variable in salesforce?&lt;br /&gt;
58.How you can measure trigger performance?&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajeshkaliyaperumal.blogspot.com/feeds/2110993130516388416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4720328723512978498/2110993130516388416?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/2110993130516388416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/2110993130516388416'/><link rel='alternate' type='text/html' href='http://rajeshkaliyaperumal.blogspot.com/2012/07/salesforce-interview-questions.html' title='Salesforce Interview Questions'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09479060959772400380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4720328723512978498.post-2012836913736921400</id><published>2012-07-19T08:09:00.003-07:00</published><updated>2012-07-19T08:09:59.846-07:00</updated><title type='text'>Solution: List has no row assignment issue</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
We assumed set SOQL query returned values assign to object&#39;s instance. If SOQL query returned null values means the &quot;List has no row assignment&quot; causes arising. we can solved by object&#39;s list instance.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method1&lt;/b&gt;: Account acc = [Select Name from Account];&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method2&lt;/b&gt;: List&amp;lt;Account&amp;gt; listacc = [Select Name from Account];&lt;br /&gt;
&lt;br /&gt;
If query returned null value means &lt;b&gt;Method1 &lt;/b&gt;raises the respective cause, but &lt;b&gt;Method2 &lt;/b&gt;is doesn&#39;t raise any causes and &#39;&lt;b&gt;listacc&lt;/b&gt;&#39; have 0 values. So we can controlled by &lt;b&gt;listacc.size( )&lt;/b&gt; method.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajeshkaliyaperumal.blogspot.com/feeds/2012836913736921400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4720328723512978498/2012836913736921400?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/2012836913736921400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/2012836913736921400'/><link rel='alternate' type='text/html' href='http://rajeshkaliyaperumal.blogspot.com/2012/07/solution-list-has-no-row-assignment.html' title='Solution: List has no row assignment issue'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09479060959772400380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4720328723512978498.post-7049349024459204133</id><published>2012-07-19T07:13:00.000-07:00</published><updated>2012-07-19T07:13:01.689-07:00</updated><title type='text'>Get result from Dynamic SOQL query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp; If we want get result from dynamic soql query as per sample here&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sObject queryResult = Database.query(&#39;Select \&#39;&#39;+field +&#39;\&#39; from sObject  where id = \&#39;&#39;+ recordid +&#39;\&#39;&#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; String Text = (String)queryResult.get(field_Name));&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp; Using this we can get dynamic query result. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rajeshkaliyaperumal.blogspot.com/feeds/7049349024459204133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4720328723512978498/7049349024459204133?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/7049349024459204133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720328723512978498/posts/default/7049349024459204133'/><link rel='alternate' type='text/html' href='http://rajeshkaliyaperumal.blogspot.com/2012/07/get-result-from-dynamic-soql-query.html' title='Get result from Dynamic SOQL query'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09479060959772400380</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>