IQ#15 - What is the size of trigger? ( For example, If I insert 2000 records from dataloader then how many times the trigger will execute?)
Ans - ⬇️
Trigger size is 200. That means 2000/200 ~= 10. So trigger will execute 10 times.
#CrackInteriew#Salesforce@trailhead
IQ#14 - Can we use Trigger.newMap in before insert event?
Ans -
If we want to store in any variable or wanted to Debug we can use. However if we try to perform any logic on that then we will get null pointer exception.
#CrackInterview#Trailhead
IQ#13 - How to execute a dynamic SOSL in @salesforce ?
Ans ⬇️
We can't use database.query here as this returns list of sobject and the SOSL return type is List of List of sobject. So to use dynamic SOSL We will use Search.Query(Query String Here).
#CrackInterview#Trailhead
IQ#12 - What is the benifit of using Test.startTest() and Test.stopTest() in test class?
Ans ⬇️⬇️
what ever the code you out inside those 2 methods gets the fresh set of governor limit. For example, you have made 90 DML outside those method and then called an apex class method
IQ#11 - Can we share a record with particular user using Sharing rule?
Ans ⬇️
Directly we can't not. However if we want to share with user then first we need to add user in Public Group and then share the record with the PG.
#CrackInterview#Salesforce@salesforce@trailhead
IQ#10 - There is a field on an object which is read Only at field definition level. However some users are complaining that they are able to edit that field. What could be the problem?
Ans ⬇️
- "Edit Read Only Fields" permission is enabled for the profile or permission set.
IQ#8 - What is difference between View All and View All data permission?
IQ#9 - What is difference between modify All and Modify All data permission.
Put your answer in reply section.
Hint - these are profile level permissions .
@salesforce#CrackInterview
IQ#7 - When does share object becomes available? For example, we have a custom object Invoice then when Invoice__Share object will be available to us.
Ans ⬇️
If the OWD for the object is either private or public read-only for any sharing ( either internal or external )
IQ#6 - Can we update parent record field using workflow rule?
Ans - ⬇️
If the relationship between those 2 object is M-D then yes we can update and if the relationship is look-up then we can't.
@salesforce@trailhead#CrackInterview#MyThoughts
IQ#5 - What is difference between setup object and non setup object.
Ans ⬇️
Setup - All those objects in which if we change it affects the security of org or records are considered as setup object.
Non-setup - All remaining objects are non setup object.
@salesforce
IQ#4 - What is mixed DML error in @salesforce
Ans - ⬇️
When we try to make the DML on non-setup & set-up objects in a single transaction then we get this errors. For example, creating a contact and a user with role.
#MyThoughts#CrackInterview#Salesforce
IQ#3 - We have a code which is making a callout and working fine in anynomous window of Developer console. But while we use the same code in execute method of batch apex it's not working.
Ans - Database.allowCallouts interface is Missing at the top batch level
@salesforce