Tuesday, August 1, 2017

salesforce interview questions and answers Part-4


Which type of report can be used for dashboard components?
Ans : Summary and matric report.

How many types of dashboard components are available?
Ans : Chart, Table, Metric and Gauge.

Explain dynamic Dashboard.
Ans : Dashboard which is running under current logged in user permission are known as “dynamic Dasboard”. At the most 3 dynamic dashboards can be built. Available in Unlimited, Enterprise and developer edition. This type of dashboard cannot be scheduled for refresh. IT must be scheduled manually.

What is the default timeout period while calling webservice from Apex.
Ans : 10 sec.

A single Apex transaction can make how many callouts to an HTTP request or an API call ?
Ans : Maximum 10 callouts

How to increase timeout while calling web service from Apex ?
Ans :

     docSample.DocSamplePort stub = new docSample.DocSamplePort();
     stub.timeout_x = 2000; // timeout in milliseconds

How to show loading image while Ajax call in Visualforce? OR how to show image in <apex:actionStatus> tag in Visualforce?
Ans:

        <div style="position:absolute;top:20px;left: 50%;">
            <apex:actionStatus id="refreshContent" >
               <apex:facet name="start" >
                 <apex:image url="{!$Resource.LoadingImage}" />
               </apex:facet>
             </apex:actionStatus>
        </div>

What is features of “Manage Members” in campaign records? Ans :
Campaign members are created from lead, contact, or person account records. Salesforce provides a variety of ways in which you can manage your campaign members. You can add and update up to 50,000 campaign members at a time through lead, contact, and person account reports; you can search for and add or edit multiple leads and contacts from the Manage Members page; you can add an unlimited number of leads and contacts using a CSV import file; or you can add members to a campaign one at a time from contact or lead detail pages.
If user doesn’t have any right on particular record and have only read level access at object level. Can he change the record owner?
Ans : Yes. In profile, there is setting for “Transfer Record”.
How to hide the “App Setup” Menu from user’s setup page? Ans : In Profile, remove access “View Setup and Configuration”.
While creating new profile for user, which existing profile should be copied?
Ans: If the new user is not System administrator then copy from “Standard User” profile.
Who can run reports? Ans : Users with permission “Run Report” and access to report folder can only run the report.
What is Difference between “printable View” and “Export Details” button on report? Ans: Printable View: formatting, grouping and subtotals are persisted. Export Details: formatting, grouping and subtotals are lost.
What is the use of “floating report header”?
Ans: If you have long tabular report, you can make the column header visible on each pages as you scroll, by enabling floating report headers.
How to enable “floating report header”? 
Ans : Go to “Setup | App Setup | Customize | Report and Dashboard | User Interface Settings “. Click on checkbox “Enable Floating Report Headers”.
Which permission is required to set the running user other than you in dashboard?
Ans: “View All Data” in profile.
Who can access “drag and drop dashboard”?
Ans : User with permission “manage dashboard”.
nherit; color: #1a1a1a; font-f
amily: Merriweather, Georgia, serif; margin-bottom: 1.75em; white-space: normal;"> How to round the double to two decimal places in Apex? Ans:
Decimal d = 100/3;
Double ans = d.setScale(2) ;
In Profile settings, what is difference between “Modify All Data” and “Modify All” ?

Ans:
Modify All Data : Create, edit, and delete all organization data, regardless of sharing settings.
Modify All : Give Read, Add, Delete permission to selected Object, Create permission is not included in Modify All  permission.

f i want record level access then what should i use from Salesforce security model?

Ans: Manual Sharing

If i want Object level access then what should i use from Salesforce security model?

Ans: Profile
In case of Master-Detail relationship, on Update of master record can we update the field of child record using workflow rule?

Ans: No

In case of Master-Detail relationship, on Update of child record can we update the field of Parent record using workflow rule?

Ans: Yes, the Master fields are also available for “Criteria evaluation”.

While setting OWD (Organization wide sharing), can we change/modify the setting of child record in case of Master-Detail relationship?

Ans: No, Child record is controlled by the Parents setting.

What is the need of “Custom Controller” in Visualforce as everything can be done by the combination of Standard Controller + Extension class. Ans :
Sharing setting is applied on standard object/extension by default; In case we don’t want to apply sharing setting in our code then Custom controller is only option.
It is possible that the functionality of page does not required any Standard object or may require more than one standard object, then in that case Custom controller is required.
n class declaration if we don’t write keyword “with sharing” then it runs in system mode then why keyword “without sharing” is introduced in apex? Ans:
Lets take example, there is classA declared using “with sharing” and it calls classB method. classB is not declared with any keyword then by default “with sharing” will be applied to that class because originating call is done through classA. To avoid this we have to explicitly define classB with keyword “without sharing”.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.