Menu Bar

Tuesday, 29 October 2013

Salesforce Interview Questions Part 6

1
Roles & Responsibilities
2
How to create opportunity from Acount
3
XML metadata structure
4
Content variables in Triggers
5
Trigger Events
6
How to migrate Metadata
7
Callout return type
8
Return type of test.isrunningtest() 
9
Mock Classes, Callout Class
10
Mock Service Implementation
11
Signature of Batch APEX
12
Scheduling APEX
13
Types of Controllers
14
<action Support, action Function, action Pollar, action Status
15
How to create REST Webservice
16
Changeset, ANT Questions, Batch Class
17
@future?, how to monitor them
18
Component? What is the attributes in component?
19
Exection Order in Trigger?
20
Validations?
21
Say u have Validation rule,  before Insert, Workflow, Field update what is the order of execution
22
Create a VF page & APEX class in which u have a drop down with VF pages. When user selects a page from drop down related Visualforce page need to get displayed?
23
Write a Trigger in which Approval process 3 step is pending. here we have 2 objects, 1. Opportunity, 2. Invoice.
24
Approval process is in Opportunity object, Now When Approval at stage 3 is pending Invoice object field name status need to change to pending?
25
What are the Sales services u have used?
26
What are the methods you have you used in your custome Approval process
27
What is Roles, Profile, Permission Sets
28
How to use Static Resources
29
How to run test class as a single user
30
Email Alerts
31
What is the script to deploy APEX code
32
Different types of CRM in market
33
What are the Triggers you have implemented recently
34
Trigger Exceptions
35
Deployment steps u follow/ Ways of deployment process
36
Can we change a trigger directly in production environment
37
Exception Handling, What are those
38
Release management
39
What is Controller, Standard Controller, Extensions
40
Limitations of Extension in APEX Class
41
What are the Standard objects u have used
42
Lead Process
43
Web to case management process
44
Types of Accounts in Salesforce
45
Testing Strategies
46
About Project
47
How manyt ways Case can be created
48
After deploying to QA, How would u test. How to take the backup  of Dev Sandbox.
49
Stages of project workflow
50
Unit Testing & where & how it is done
51
What is regression testing & Integration testing
52
What are Tests Scripts
53
@istest, test
54
Utility Methods?
55
How do u clean the data?
56
Record Types?
57
Facet tag
58
What is Escalation Rules
59
Types of Sharing a Record
60
change field type from lookup to master detail change
61
different ajax tags 
62
difference between export and export all 
63
limitation on page block table 
64
difference between page block table and data table 
65
email to case, email text is an xml 
66
best practices in testr methods 
67
assigning differnet permission sets to same user with different permissions on same object 
68
If a user have read only permissions to an object and in a permission set he is given create and edit permisssion then assigned that permission set to a user then what permissions do that user have on that object 
69
changeset components that we cannot move through change sets 
70
apex jobs and scheduled jobs 
71
limitations of batch apex 
72
sales cloud and service cloud 
73
what is the use of visualforce email templates 
74
difference between partner WSDL and enterprice WSDL 
75
why don't you insert case records using partner wsdl 
76
wrapper classes and their usage
77
What are iframes
78
Sharing a record via trigger or class
79
Can organisation wide defaults be narrowed 
80
Two extensions with a same method which will be executed in visualforce
81
Difference between enterprise and partner wsdl 
82
What are person accounts 
83
How to migrate attachments 
84
Quotes usage 
85
Product product lines and price book relation 
86
What are product line items 
87
Sales cloud and service cloud 
88
End to end process in sales cloud 
89
What are different types of custom settings 
90
What are different types of approval processes 
91
If an approval process involves multiple users for approval what type of process is that 
92
How to access custom settings 
93
Workflow evaluation criterias 
94
Time dependant workflows 
95
Why time dependant workflow can't be fired on a certain criteria 
96
While performing an update operation through data loader if the Csv file cotains duplicate values what will happen
97
limitation in excel file for duplicate values
98
many to many relation with a look up relationship
99
when an error will be thrown if a field nt present in SFDC is added to insert a record through partner wsdl
100
governer limits faced in your project
101
custom settings and custom label
102
different types of custom settings
103
visualforce view state
104
salesforce security model
105
Standard set controllers
106
Implementing pagination without using standard set controllers
107
OFFSET in queries
108
Load data to dataloader from the sql database other than csv files
109
Can we use SOSL in triggers
110
Different types of queries in salesforce
111  when an error will be thrown if a field nt present in SFDC is added to insert a record          through partner wsdl
A.) No such column 'Field__c' on entity 'ObjectName'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
112 Can we use SOSL in triggers
A.) No, Because the apex developer's guide says so:
SOSL statements evaluate to a list of lists of sObjects, where each list contains the search results for a particular sObject type. The result lists are always returned in the same order as they were specified in the SOSL query. SOSL queries are only supported in Apex classes and anonymous blocks.You cannot use a SOSL query in a trigger.
113 OFSET in queries
A.) SELECT Name, Email__c,Cell_Phone__c FROM Endeavor_Reg_Form__c LIMIT :blockSize OFFSET :index
Use OFFSET to specify the starting row offset into the result set returned by your query. Using OFFSET is helpful for paging into large result sets, in scenarios where you need to quickly jump to a particular subset of the entire results. As the offset calculation is done on the server and only the result subset is returned, using OFFSET is more efficient than retrieving the full result set and then filtering the results locally.OFFSET is available in API version 24.0 and later.

SELECT fieldList
FROM objectType
[WHERE conditionExpression]
ORDER BY fieldOrderByList
LIMIT number_of_rows_to_return
OFFSET number_of_rows_to_skip

114 Implementing pagination without using standard set controllers
A.) <apex:page controller="PagenationController" >
<apex:form >
    <apex:pageBlock id="details">
        <apex:pageblockTable value="{!end}" var="e">
            <apex:column value="{!e.Name}"/>
            <apex:column value="{!e.Email__c}"/>
            <apex:column value="{!e.Cell_Phone__c}"/>          
        </apex:pageblockTable>
        <apex:pageblockButtons >
            <apex:commandButton value="<<" rerender="details" action="{!beginning}" disabled="{!prev}"/>
            <apex:commandButton value="<" rerender="details" action="{!previous}" disabled="{!prev}"/>
            <apex:commandButton value=">" rerender="details" action="{!next}" disabled="{!nxt}"/>
            <apex:commandButton value=">>" rerender="details" action="{!end}" disabled="{!nxt}"/>                                  
        </apex:pageblockButtons>
    </apex:pageBlock>
</apex:form>
</apex:page>


public class PagenationController {


    private integer totalRecs = 0;   
    private integer index = 0;
    private integer blockSize = 20;       
  
    public PagenationController()
    {
        totalRecs = [select count() from Endeavor_Reg_Form__c];      
    }  
  
    public List<Endeavor_Reg_Form__c> getend()
    {
        List<Endeavor_Reg_Form__c> ends = Database.Query('SELECT Name, Email__c,Cell_Phone__c FROM Endeavor_Reg_Form__c LIMIT :blockSize OFFSET :index');
        System.debug('Values are ' + ends);
        return ends;
    }  
  
    public void beginning()
    {
        index = 0;
    }
  
    public void previous()
    {
        index = index - blockSize;
    }
  
    public void next()
    {
        index = index + blockSize;
    }

    public void end()
    {
        index = totalrecs - math.mod(totalRecs,blockSize);
    }      
  
    public boolean getprev()
    {
        if(index == 0)
        return true;
        else
        return false;
    }
  
    public boolean getnxt()
    {
        if((index + blockSize) > totalRecs)
        return true;
        else
        return false;
    }        
}

3 comments:

Anonymous said...

Hi,
The questions you posted here is very useful if we have the answers also for those.
Can you update the answers for those questions

Chaitanya said...

Send ur answers to chaitanya.hota@gmail.com

Steven Cohen said...

If You Own A Forex Account, Meta Fx Global Is A Tool That You Need To Add To Your Trading Portfolio.