Posts

Showing posts from July, 2018

Salesforce Interview Question

PART - 1 : 1.If you want to write a workflow for a record in which age should be greater than 18 and it should be a new record. The workflow should not fire for old records. How will you achieve this? Answer: It can be achieved through using IsNew() method and age>18 condition in Workflow. 2. What is External id and primary id? Answer: External id is unique to the external application. Primary id is unique to the internal organization. 3.What are the different types of Cloud in SF? Answer: Sales cloud Service Cloud 5.What happens in the backend when you save the record? (execution sequence in terms of trigger and flows) 6.Limitation of Process Builder? 7.What is the difference between process builder and workflow? 8.Write a trigger and update account fields numofoppclosedwon when the opportunity stage is closed won? how many opportunities are closed won in this account? 9.What is @testsetup method? how to use in the test method? 10.Triggers and considerations? 11.Static and Instanc...

User Permissions and Access in salesforce

Image
User permissions and access settings are specified in profiles and permission sets. To use them effectively, understand the differences between profiles and permission sets. User permissions and access settings specify what users can do within an organization: Permissions determine a user's ability to edit an object record, view the Setup menu, empty the organizational Recycle Bin, or reset a user's password. Access settings determine other functions, such as access to Apex classes, app visibility, and the hours when users can log in. Every user is assigned only one profile, but can also have multiple permission sets. When determining access for your users, use  profiles to assign the minimum permissions and access settings  for specific groups of users. Then use  permission sets to grant more permissions  as needed. This table shows the types of permissions and access settings that are specified in profiles and permission sets.

Setup and maintain your salesforce organization

Image
Control Who Sees What Salesforce provides a flexible, layered data sharing design that allows you to expose different data sets to different sets of users, so users can do their job without seeing data they don't need to see. Use permission sets and profiles to specify the objects and fields users can access. Use organization-wide sharing settings, user roles, sharing rules to specify the individual records that users can view and edit. REQUIRED EDITIONS Available in: Salesforce Classic The available data management options vary according to which Salesforce Edition you have. NOTE     Who Sees What: Overview  (English only) Watch a demo on controlling access to and visibility of your data. TIP  When implementing security and sharing rules for your organization, make a table of the various types of users in your organization. In the table, specify the level of access to data that each type of user needs for each object and for fields...

Batch Apex Class

Batch Apex is exposed as an interface that must be implemented by the developer. Batch jobs can be programmatically invoked at runtime using Apex. Need of Batch Apex: - As you all might know about the salesforce governor limits on its data. When you want to fetch thousands of records or fire DML on thousands of rows on objects it is very complex in salesforce and it does not allow you to operate on more than certain number of records which satisfies the Governor limits. But for medium to large enterprises, it is essential to manage thousands of records every day. Adding/editing/deleting them when needed. Salesforce has come up with a powerful concept called Batch Apex. Batch Apex allows you to handle more number of records and manipulate them by using a specific syntax. We have to create a global apex class which extends Database. Batchable Interface because of which the salesforce compiler will know, this class incorporates batch jobs. Below is a sample class which is desig...