Tag: Interview Questions

  • Salesforce Interview Question – Part 15

    141 : User Wants to set the starting day in Calendar as “Monday” instead of “Sunday”. How to get it done? Ans : Change the user locale to “English ( United Kingdom ) ” in Personal information or User record. 142 : Why CSS is not working in PDF created by Visualforce ? Ans :…

  • Salesforce Interview Question – Part 14

    131. What will happen if you try to update record in After Trigger Context? Ans : You will get an error saying “record is Read only”. 132. Let’s say we have to update the same record in After Trigger context. Is there any way or workaround? Ans : If we create a new instance of…

  • Salesforce Interview Question – Part 13

    121 : Consider we have overall 90% code coverage however there is one class which have 0% code coverage. Can we still able to deploy that class on production? Ans : Yes. Minimum 1% required for every trigger and there is no such restriction for Apex class. 122 : How to get selected records ID…

  • Salesforce Interview Questions – Part 11

    101. How to force lead assignment rule via Apex while updating or adding the Lead? Ans : To enforce Assignment Rules in Apex you will need to perform following steps: Instantiate the “Database.DMLOptions” class. Set the “useDefaultRule” property of “assignmentRuleHeader” to True. Finally call a native method on your Lead called “setOptions”, with the Database.DMLOptions…