Salesforce Interview Questions and Answers – 3
22. What are the actions in workflow?
1. Email Alert
2. Task
3. Field Update
4. Outbound Message
Go through the below link for the more information about workflow actions https://www.salesforcetutorial.com/salesforce-workflow-automation-workflow-management/
23. How many ways we can made field is required?
1. While creation of field
2. Validation rules
3. Page Layout level
24. What is difference between Role and Profile?
Role is Record level access and it is not mandatory for all users.
Profile is object level and field level access and it is mandatory for all users.
25. What is the maximum size of the PDF generated on visualforce attribute renderAs?
15MB
26. How many controllers can be used in a visual force page?
Salesforce come under SAAS so, we can use one controller and as many extension controllers.
27. What is difference between Action support and Action function?
Action function: Invoke the controller method from java script using AJAX and we can use action function from different places on visual force page.
Action support: Invoke the controller method using AJAX when even occurs on page like onMouseOver, onClick, ect… and we can use action support for a particular single apex component.
28. How many ways we can call the Apex class?
1. Visual force page
2. Web Service
3. Triggers
4. Email services
29. How to create Master Details relationship between existing records?
Directly we can’t create Master Detail relationship between existing records, first we have to create Lookup relationship and provide valid lookup fields and it shouldn’t null.
30. What is permission set?
Permission sets extend user’s functional access without changing user’s profile.
Ex: A user has only read access through profile on custom object, administrator want to give access Edit and create operations to him without changing the profile. Administrator creates the permission set having edit and creates operation on custom object and assign to that user.
31. What is manual sharing?
Manual sharing is to share a record to a particular user manually.
Go to detail page of record and click on manual sharing button and assign that record to other user with Read or Read/Write access.
Manual Sharing button enables only when OWD is private to that object.
HOW MANY ROLL-UP RELATIONS WE CREATED IN ONE OBJECT?
10
10 Roll-up Summary fields per object all each edition.
10
10 roll up relations we can create in one object
10
how many lookup and master detail relationships created in one object ?
Hi Suji,
Per object 25 relationships is possible, per object 2 master detail only.
Thanks
kumar
we can create 25 lookup relations and 2 master detail relations on a object
We can create 40 relationships in total on an object (out of which only 2 can be master detail).
total Relationship b/w objects is 40 but we have restriction on M-D Relationship. So we have to create only 2 M-D Relationship per object remaining 38 for lookup Relationship
Lookup field is 40for an object and master detail is 2 for an object
2 master detail for one object
25 rollup sumary fields are created
23. How many ways we can made field is required?
1. You can set a field as REQUIRED via the Page Layout
2. You can set a field as REQUIRED using a Validation Rules (field will become mandatory based upon a specific criteria)
3. You can also use the Field Level Security at the profile level to define access to a field
4. via trigger
5. You can create a workflow rule that does a field update any time the object is saved with the “mandatory” field blank, and set it to be some default value. (This is not forcing the USER to always enter a value, but it does enforce that the field will never be blank, because the system will automatically fill in what the user missed).
6. If your page layout is custom built (Visualforce), you can either set the , or you can create an Apex controller for the page with a method that enforces that field being properly populated, and then throws an error or page message to the user when they try to save without it.
7.We can add formula too? for field validation by using isBlank() or size()