Documente Academic
Documente Profesional
Documente Cultură
answers
Q. What is workflow ?
A. It is automated process that fired an action based on evalution criteria and rule cretria and
Path : Setup Create Workflow & Approval process
Q. What is trigger ?
A. It is a piece of code that executes before and after a record is inserted or updated. we can
use 20 DML operations in one trigger
Q. Can we change custom financial year to standard fiscal year once it is changed by
administrator ?
A. No, We cannot
Q. What is OWD ?
A. It defines the basic level of access to data records for all users in organization. It helps to
restrict access into data.They are Private,Pubilc Read/write,Public
Read/write/Transfer,Controlled by Parent,Public read only
Q. What are folders in salesforce ?
A. Folders are used to store organization email templates, documents, reports and dashboards
Q. What is trigger ?
A. Trigger is piece of code that is executes before and after a record is
Inserted/Updated/Deleted from the force.com database.
Q. How to track the details of the current running Batch using BatchableContext?
A. You can check the AsyncApexJob.Status using the JobId from the
Database.BatchableContext.
Q. What is Database.AllowCallouts?
A. To use a callout in batch Apex, you must specify Database.AllowsCallouts in the class
definition. For example:
global class SearchAndReplace implements Database.Batchable<sObject>,
Database.AllowsCallouts{
//Business logic you want by implementing Batchable interface methods
}
Callouts include HTTP requests as well as methods defined with the webService keyword.
Q. For which criteria in workflow “time dependent workflow action” cannot be created?
A. created, and every time its edited
Q. Can you have more than one extensions associated with a single page?
A. Yes we can have more than extensions.
Q. If page is having multiple extensions and if two extensions have methods of same name.
Then which method out of these two will be called upon calling from vf page ?
A. The one which is present in the controller defined on the left side will be called.
Q. Can you have roll up summary fields in case of parent child relationship?
A. No. These are present only in case of master details relationship.
Q. What does the error “list has no rows for assignment” mean?
A. it means the list you are trying to access has no values in it.
Q. What is sosl?
A. select query that can return records of multiple objects as list of lists.
Q. What is the full form of AJAX?
A. it stands for asynchronous java and XML
Q. How can you display the status of an AJAX update request in a visualforce page ?
A. To display AJAX request status we can use component.
Q. How can you implement custom functionality for a standardcontroller visualforce page?
A. This can be done by associating a controller class with that standard controller using
“Extensions
Q. Reset security token option is unavailable in set up. What could be the reason?
A. If in the profile setting “login ip ranges” have been set up then the option of “reset security
token” is unavailable.
Q. What are the different data types that a standard field record name can have?
A. Record name field can have either of the two data types : Auto Number or Text data type
Q. What is trigger.new?
A. It is a list of records in current context in a trigger.
Q. How can you create a input field for date on a visualforce page ?
A. To create a input date field on vf page you will have to bind it with a existing date field on
any object.
Q. What are the different types of email templates that can be created in salesforce?
A. Test, HTML (using Letterhead), Custom (without using Letterhead) and Visualforce.
Q. How can you display different picklist values for picklist fields in different page layouts?
A. This can be done using record types.
Q. What are the data types that can be returned by a formula field?
A. They are Checkbox, currency, Date, Date/Time, Number, Percent and Text
Q. How can you place an entire visualforce page in a different visualforce page?
A. This can be done using include attribute.
Q. When a lead is converted into account/contact will the trigger on account/contact fire?
A. In set up we can enable or disable whether triggers should run on conversion.
Q. Consider that a record meets a workflow criteria for time based workflow action, the
action goes in queue. Later, before the time based action is triggered, the same record gets
modified and the criteria previously met is changed and now it does not meet the workflow
criteria, what happens to the time based action placed in queue?
A. The time based workflow action is removed from the queue and will not get fired.
Q. What is the use of writing sharing rules?
A. Sharing rules extend the record/data access level which is set using OWD, role
hierarchy.Sharing rule cannot restrict the data visibility but can only widen it.
Q. What are the different considerations that must be followed when using @future
annotation in apex method?
A. Method must be static, It must return void and method can have argument of type
primitives, collection of primitives or arrays of primitives
Q. What is the difference between List type custom setting and Hierarchy type custom
setting?
A. List type stores static data that can be used in apex code as it is examples could be country
codes,currencies etc.Hierarchy type stores data that may change depending on user,profile or
org wide default
Q. How can you expose an apex class as a REST web service in salesforce?
A. An apex class can be exposed as REST web service by using keyword ‘@RestResource’
Q. Can you set default access in Organization wide default for detail objects (detail object in
case of master detail relationship)?
A. No, Detail object will always have default access as ‘Controlled by Parent’ and it cannot
be changed.
Q. What is Accounts ?
A. Accounts are companies which your doing business
Q. What is Profile?
A. Profile contains set of permissions and access settings that controls what user can do with
in the organization.
Q. What is OWD?
A. OWD’S are base line record level security for objects in the organization.It is used to
restrict access to data.
Q. What is Roles?
A. A role controls the level of visibility that users have to an organization’s data.
Q. What is User?
A. The people who have authenticated username and password to login to the salesforce
successfully.
Q. Can you override profile permissions with permission sets(i have defined some
permissions in profile,i am trying to use permission sets for the same object,can i override
permissions for a particular object in the permission sets over to the profile?
A. No. Permission Sets are used only to extend the Profile permissions. It never overrides.
Q. I want to have read/write permission for User and read only for User , how can you
achieve?
A. Create a Permission Set with read/write and assign it to User .
Q. I have an OWD which is read only, how all can access my data and I want to give read
write access for a particular record to them, how can i do that?
A. All users can just Read the record.Create a Sharing Rule to give Read/Write access with
“Based on criteria” Sharing Rules.
Q. What is the difference between role hierarchy and sharing rules? will both do the same
permissions?
A. Role Hierarchy states that higher hierarchy person can see lower hierarchy person
records.Sharing Rule is used to extend Role Hierarchy.
Q. How to give permissions to two fields for different users who belongs to different
profiles?
A. Permission set
Q. How we can change the Grant access using role hierarchy for standard objects?
A. Not possible.
2. what is webservices ?
A. Webservices is a functionality or code which helps to us to do integration.
3. what is Protocal ?
A. Protocal is contains set of instructions or rules.
6. What is WSDL ?
A. WSDL stands for Webservices Description Langugage.
It contains types, messages,port types and Binding.
18. How REST can be accessed or which message format REST supports ?
A. REST supports both XML and JSON
Application Event is handled by all components that are subscribed to the event. These events
are essentially a traditional publish-subscribe model.
Q. What is Aura ?
A. Aura is UI framework to built dynamic web apps for mobile and desktop devices into
lightning.
Q. What are the basic differences between Application Event and Component Event?
A. Component events are used to do communication between child and parent. They use
bubbling and capture same as used in DOM events. A change in a child component can be
communicated to the parent component via component event.
Application events are used to communicate any change in the component to a broader
audience. Any component who has registered for this event will get a notified.
Q. Which interface we are supposed to implement so that a lightning component can be used
as quick action?
A. We need to implement the following force: lightningQuickAction so that we can use the
component as a Quick Action
Q. Which interface we are supposed to implement so that a lightning component can be used
as a Tab?
A. We need to implement the following force:appHostable so that we can use the component
as a Tab
Q. How can we use Lightning Components with the Salesforce1 Mobile App ?
A. We need to first make a lightning tab which points to the lightning component we created
and then we have to include that tab in the salesforce1 Mobile Navigation select list and the
newly created tab to it.
Q. Can we make one component inherit styles/CSS from a parent component, or must we
always define it in the component ?
A. Child component inherits the CSS from its arent we do not need to specify it for each
component