Email Services Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages. Each email service has one or more email service addresses that can receive messages for processing. Before creating email services, create Apex classes that implement implement the Messaging.InboundEmailHandler Messaging.InboundEmailHandler interface. global class myHandler implements Messaging.InboundEmailHandler { global Messaging.InboundEmailResu Messaging.InboundEmailResultlt handleInboundEmail(Mess handleInboundEmail(Messaging.InboundEma aging.InboundEmailil email, Messaging.InboundEnvelope Messaging.InboundEnvelope envelope) { Messaging.InboundEmailResul Messaging.InboundEmailResultt result = new Messaging.InboundEmailres Messaging.InboundEmailresult(); ult(); return result; } }
External ID When importing custom objects, solutions, or person accounts, you can use external IDs to prevent duplicate records from being created as a result of the import operation. An external ID is a custom field that has t he ³External ID´ attribute, meaning that it contains unique record identifiers from a system outside of Salesforce. When you select this option, the import wizard will detect existing records in Salesforce that have the same external ID. Note that this operation is not case-sensitive - for example, ³ABC´ will be matched with ³abc´. However, there is an exception: if the custom field has the separate ³Unique´ attribute and the case-sensitive option for that attribute is selected, uppercase and lowercase letters will not be considered identical. 1. 2. 3. 4. 5. 6. 7. 8. 9.
What is View State? It stores the information necessary to maintain the state of the database between requests. What is difference between Group and Professional editions? Which edition do you use? Unlimited. What is AJAX? Asynchronous Java script And XML How do you rate yourself on scale of ten on VF and Apex? What is DataLoader? How we can run it in Batch Mode? The Data Loader is a client application application for the bulk import or export of data. Use it to insert, update, delete, or export Salesforce.com Salesforce.com records. What is upsert? What are main features in Winter 11and Spring 11 release? What is difference between System Log and Debug Log?
A debug log records database operations, system processes, and errors that occur when executing a transaction or while running unit tests. The system generates a debug log for a user every time that user executes a transaction that is included in the filter criteria. The System Log console is a separate window that displays debugging information, as well as its cumulative limits and source code. It can be considered a context-sensitive execution viewer, showing the source of an operation, what triggered that operation, and what occurred afterward. Use the System Log console to view debug logs that include database events, Apex processing, workflow, and validation logic. 10. Why do you mean by Anonymous code? Why do you use it? An Apex script that does not get stored in Salesforce.com, but that can be compiled and executed through the use of the System Log Console or ExecuteAnonymousResult() API call, or the equivalent in the AJAX Toolkit. 11. Describe various keywords and functions used in test cases? 12. What is the use of System.Assert statements? 13. What is purpose of startTest and stopTest functions? 14. What is difference between Global and Public keywords? 15. What is the purpose of µisTest¶ notation? What¶s the benefit of it? 16. What are Governor Limits? Why are they required? Describe them? 17. What is Batch Apex? How can we implement them? Why do we need them? 18. Why do we use renderAs attribute? 19. Describe usage of all action tags? 20. List any 15 VF tags? 21. What is the limit on SOQL query? 22. What is SOSL? What are limitations on SOSL? 23. What are different types of Sandboxes? What is difference among them? 24. What do you use to deploy code on production? 25. What do you do before deploying code to production? We validate before deploying to production. 26. 27. 28. 29. 30.
How can you connect with SalesForce.com using Java? What are different types of WSDL files available in SalesForce? What is difference between Enterprise and Partner WSDL files? From where you can download WSDL? What is Chatter?
31. What is Person Account? A person account is an individual consumer with whom you do business, such as a financial services client, an online shopper, or a vacation traveler. Person accounts are applicable to organizations that operate on a business-toconsumer model as opposed to a business-to-business model. 32. What are different types of reports? Tabular Summary Matrix 33. What are different functionalities available for Workflow and Approvals in SaleForce? Workflow Rule
A workflow rule sets workflow actions into motion when its designated conditions are met. You can configure workflow actions to execute immediately when a record meets the conditions in your workflow rule, or set time triggers that execute the workflow actions on a specific day. Approval Process An approval process is an automated process your organization can use to approve records in Salesforce.com. An approval process specifies the steps necessary for a record to be approved and who must approve it at each step. A step can apply to all records included in the process, or just records that have certain attributes. An approval process also specifies the actions to take when a record is approved, rejected, recalled, or first submitted for approval. Workflow and Approval Actions Workflow and approval actions consist of email alerts, tasks, field updates, and outbound messages that can be triggered by a workflow rule or approval process. Email Alert Email alerts are workflow and approval actions that are generated using an email template by a workflow rule or approval process and sent to designated recipients, either Salesforce.com users or others. Field Update Field updates are workflow and approval actions that specify the field you want updated and the new value for it. Depending on the type of field, you can choose to apply a specific value, make the value blank, or calculate a value based on a formula you create. Task Assigns a task to a user you specify. You can specify the Subject, Status, Priority, and Due Date of the task. Tasks are workflow and approval actions that are t riggered by workflow rules or approval processes. Outbound Message An outbound message is a workflow, approval, or milestone action that sends the information you specify to an endpoint you designate, such as an external service. An outbound message sends the data in the specified fields in the form of a SOAP message to the endpoint. 34. How a person can know about requests pending for his approval? And how he can approve them? 35. What are custom tabs? A custom tab is a user interface component you create to display custom object data or other web content embedded in the application. These are of three types: Custom Object tab Custom Web Tab Apex Page Tab 36. What are record types? Record types allow you to offer different business processes, picklist values, and page layouts to different users based on their profiles. 37. What are page layouts? Page layouts define which fields, users can view and edit when entering data for a custom object record. 38. What are relationships and there types? Relationships are used to associate an object with other objects in Salesforce.com. Master Detail Closely links objects together such that master record controls certain behavior of detail and sub-detail records. When a master record is deleted, the related detail and sub-detail records are also deleted. The Owner field on the detail and sub-detail records is not available and is automatically set to the owner of the master record. Custom objects on the ³detail´ side of a master-detail relationship cannot have sharing rules, manual sharing, or queues, as these require the Owner field. The security settings for the master record control the detail and subdetail records.
-
The master-detail relationship field (which is the field linking the objects) is required on the page layout of the detail and subdetail records.
Many-to-many A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa. You can use master-detail relationships to model many-to-many relationships between two standard objects, two custom objects, or a custom object and a standard object. When modeling a many-to-many relationship, you use a junction object to connect the two objects you want to relate to each other. Lookup -
This type of relationship links two objects together, but it has no effect on deletion, record ownership, or security, and the lookup relationship field is not required in the page layout.
Hierarchical -
This type of relationship is a special lookup relationship available only for the user object. It allows users to use a lookup field to associate one user with another that does not directly or indirectly refer to itself.
39. What are Custom Objects? Custom Objects are database tables that allow you to store data unique to your organization. 40. What are Custom Lables? Custom Labels are test values that can be accessed from code or VF page and used in multilingual applications. These values can be translated into any language supported by SalesForce.com. 41. What is an App in SalesForce? An ³app´ is a group of tabs that works as a unit to provide application functionality. Salesforce.com provides standard apps such as Sales and Call Center. 42. What is order of process of rules? 1. Validation rules 2. Assignment rules 3. Auto-response rules 4. Workflow rules (with immediate actions) 5. Escalation rules 43. What are Custom Settings? Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. List Custom Settings A type of custom setting that provides a reusable set of static data that can be accessed across your organization. Data in list settings does not vary with profile or user, but is available organization-wide. Hierarchy Custom Settings
A type of custom setting that uses a built-in hierarchical logic that lets you ³personalize´ settings for specific profiles or users. The hierarchy logic checks the organization, profile, and user settings for t he current user and returns the most specific, or ³lowest,´ value. In the hierarchy, settings for an organization are overridden by profile settings, which, in turn, are overridden by user settings. 44. What are email services? Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email. 45. What is an Edition? What are the different Salesforce.com Editions and Limits? Your Edition determines which features and functionality you can access. To determine which Edition you are using, check the title bar of your browser. Personal Edition Personal Edition is a CRM solution designed for an individual sales representative or other single user. Personal Edition provides access to key contact management features such as accounts, contacts, and synchronization with Microsoft Outlook®. Contact Manager Contact Manager is designed for small businesses and provides access to key contact management features including accounts, contacts, activities, calendars, notes and attachments, and reports. Contact Manager also provides straightforward and easy-to-use customization options. Group Edition Salesforce.com Group Edition is designed for small businesses and workgroups with a limited number of users. Group Edition users can manage their customers from the start of the sales cycle through closing the deal to providing customer support and service. Group Edition offers access to accounts, contacts, opportunities, leads, cases, dashboards, and reports. Professional Edition Salesforce.com Professional Edition is designed for businesses who need full-featured CRM functionality. Professional Edition includes straightforward and easy-to-use customization, integration, and administration tools to f acilitate any small- to mid-sized deployment. Enterprise Edition Salesforce.com Enterprise Edition is designed to meet the needs of large and complex businesses. In addition to all of the functionality available in Professional Edition, Enterprise Edition organizations get advanced customization and administration tools that can support large-scale deployments. Enterprise Edition also includes access to the Web services API so you can easily integrate with back-office systems. Unlimited Edition Unlimited Edition is salesforce.com's flagship solution for maximizing CRM success and extending that success across the entire enterprise through the Force.com platform. Unlimited Edition customers benefit from new levels of platform flexibility for managing and sharing all of t heir information on demand. Unlimited Edition includes all Enterprise Edition functionality plus Premier Support, full mobile access, unlimited custom apps, increased storage limits, and more. Developer Edition Developer Edition provides access to the Force.com platform and API. It allows developers to extend the Salesforce.com system, integrate with other applications, and develop new tools and applications. Developer Edition provides access to many of the features available with Enterprise Edition. Salesforce.com does not provide technical
support for Developer Edition. You can solicit help from the developer community message boards available to registered users via the Force.com developer website - developer.force.com. Force.com Free Edition Force.com Free Edition is a Salesforce.com organization designed for developing and deploying one Force.com app for up to 100 users. You can upgrade your Free Edition account to a paid subscription if you need to deploy more custom applications to more users in the future. Free Edition includes most Force.com features but does not provide users with Salesforce.com CRM functionality and standard objects, such as accounts, contacts, campaigns, leads, opportunities, forecasts, products, cases, and solutions. Salesforce.com does not provide technical support for Free Edition. 46. What are administrator tasks you have worked on? Company Information Multiple Currencies setup Divisions Mail Merge Templates Translation Workbench User Management-users/roles/profiles/Administrative & General Permissions/Object permissions/Groups/Queues/Events Security and Sharing-Data Access(Object Level/Field Level/Record Level)/ Sharing(Organization-wide defaults, Sharing Rules, Sharing Overrides)/Password Policies/Session Security/Login IP Restrict/Single Sign On/Key Pairs/Monitoring Setup Changes/Delegating Administrative Duties/ Identity & Service Provider Data Management-Import/Export/Monitoring Resources(storage)/Mass Delete/Mass Update/Data Loader(installation/configuration/Batch Processes) Monitoring-Import Queue/Outbound Message/Workflow Queue/Process Queue/Case Escalation Rule Queue/API Usage/Debug Logs/Scheduled Jobs/Apex Jobs/Background Jobs/Automated Data Load Jobs/Automated Process Actions SalesForce Mobile Outlook Connectivity Email Administration Customization-Tabs/Fields/Custom Buttons & Links/Record Types/Rules/Folders/Activities/Lead/Sales/Support/Self Service/Quotes/Ideas/Contents/Knowledge/Service Cloud Console/Answers/Categories/Chatter/Report Dashboards/Search/Interface/Help Critical Updates Console Force.com Sites Customer Portal
47. What is difference between Role and Profile? Roles can control the level of visibility that users have into your organization¶s data. Users at any given role level can view, edit, and report on all data owned by or shared with users below them in the hierarchy, unless your organization¶s sharing model for an object specifies otherwise. Roles primarily control a user's record-level access permissions through role hierarchy and sharing rules. Profiles contain administrative permissions and general user permissions, which in turn control what actions a user can take. Profiles control a user's object- and field-level access permissions.
48. What are standard profiles available? System Administrator Standard Platform User Standard Platform One App User Standard User Partner User High Volume Customer Portal User Authenticated Website User Customer Portal User Customer Portal Manager Solution Manager Marketing User Read Only Chatter Only User Chatter Free User Chatter Moderator User
49. How to overcome 10000 query rows limit? By using ActionPolar. 50. What are key Profile permissions? Manage Users Customize Application Modify All Data View All Data Edit Read Only Fields View Encrypted Data 51. What are custom object permissions? Read Create Edit Delete View All Modify All 52. What are groups? Groups are sets of users. They can contain individual users, other groups, the users in a particular role or territory, or the users in a particular role or territory plus all of the users below that role or territory in the hierarchy. 53. What are queues? Queues help your organization to manage the distribution of object records. When an object record is created, manually assign it to a queue so that the users who are assigned to the queue can access it and take ownership of it as appropriate.
54. What are types of user licenses available in salesforce? SalesForce.com users: SalesForce SalesForce Platform SalesForce Platform Light Force.com ± One App Force.com ± Free Ideas and Answers Internal User Content Only User Knowledge Only User Chatter Free Chatter Only Site Users: Guest User Customer Portal User: High Volume Customer Portal User(Service Cloud User) Authenticated Web Site User Customer Portal Manager Standard Customer Portal Manager Custom Partner Portal User: Bronze Partner Silver Partner Gold Partner 55. What are different types of feature licenses in salesforce? Marketing User Offline User Apex Mobile User SalesForce CRM Content User Knowledge User Service Cloud User 56. What is difference between deletion using Data Loader and using web interface? 57. What are record types? 58. What are different types of triggers? before insert before update before delete after insert after update after delete after undelete 59. What are trigger context variables? y y y y y y y
All triggers define implicit variables that allow developers to access runtime context. These variables are contained in the System.Trigger class: isExecuting isInsert isUpdate isDelete isBefore isAfter isUndelete new newMap old oldMap size What are different ways to delete a record and what¶s the difference in them? What are types of controllers? Standard Controllers Standard List Controllers Custom Controllers and Custom Extensions What are bulk safe triggers? How to suppress validations while saving a record? In which sequence Trigger and automation rules run in Salesforce.com y y y y y y y y y y y y
60. 61.
y y y
62. 63. 64.
The following is the order salesforce logic is applied to a record. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15.
Old record loaded from database (or initialized for new inserts) New record values overwrite old values System Validation Rules All Apex ³before´ triggers (EE / UE only) Custom Validation Rules Record saved to database (but not committed) Record reloaded from database All Apex ³after´ triggers (EE / UE only) Assignment rules Auto-response rules Workflow rules Escalation rules Parent Rollup Summary Formula value updated (if present) Database commit Post-commit logic (sending email)
Additional notes: There is no way t o control the order of execution within each group above. 65. What are types of workflows? 66. Give examples of action tags. ActionRegion ActionSupport ActionFunction ActionPoller ActionStatus
67. What¶s difference between Outbound Messages and Email service? 68. What¶s the difference between With Sharing and Without Sharing keywords? 69. Give examples of @ annotations. @future @isTest @deprecated 70. What¶s the difference between Role and Profile? 71. What are types of sharing? Force.com Managed Sharing (Record Ownership, Role Hierarchy, Sharing Rules) User Managed Sharing / Manual Sharing (for single record) Apex Managed Sharing (only available for custom objects) 72. What is email service? 73. What are outbound messages? 74. What will be the status of relationship fields when deleted records are restored in a master and detail object? Undeleting the master record also undeletes detail and subdetail records. 75. What will be the status of relationship fields when deleted objects are restored? When you delete a custom object that is on the detail side of a master-detail relationship, the relationship is converted to a lookup relationship. If you restore the custom object, you must manually convert it t o a master-detail. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96.
What are recursive triggers? How can we avoid the recursion problem? What are Apex Governor Limits? How do you use an actionFunction tag? What is the difference between apex:actionFunction and apex:actionSupport tag? What is actionPoller? How to use actionPoller tag? How do you do FileUpload using Visualforce? What is appexchange? How can I host my application on appexchange? What are the different editions available on salesforce? What is batch apex? When will we use batch apex and what is the best practice? What are webservice callouts? What are wrapper classes? When do we use wrapper classes? How do you hide Header and Sidebar on Visualforce page? What is difference between standard and custom controller? What is Controller extension? How do you read parameter in Visualforce page? How many dependent drop down can be put on one Visualforce page? What is the maximum size of the PDF generated on Visualforce attribute renderAs? What is difference between actionFunction and actionSupport Tag ? How can we check the object accessibility on visualforce page? -{!$ObjectType.MyCustomObject__c.accessible} 97. How many rows return by list controller? -10000 98. What is custom component? 99. What is assignTo attribute and what is its use?
100. What is Apex? Ans: It is the in-house technology of salesforce.com which is similar to Java programming with object oriented concepts and to write our own custom logic. 101. What is S-Control ? Ans: S-Controls are the predominant salesforce.com widgets which are completely based on Javascript. These are hosted by salesforce but executed at client side. S-Controls are superseded by Visualforce now. 102. What is a Visualforce Page ? Ans: Visualforce is the new markup language from salesforce, by using which, We can render the standard styles of salesforce. We can still use HTML here in Visualforce. Each visualforce tag always begins with ³apex´ namespace. All the design part can be acomplished by using Visualforce Markup Language and the business logic can be written in custom controllers associated with the Page. 103. Will Visual force still supports the merge fields usage like S-control ? Ans: Yes. Just like S-Controls, Visualforce Pages support embedded merge fields, like the {!$User.FirstName} used in the example. 104. Where to write Visualforce code ? Ans: You can write the code basically in 3 ways. y y
y
setup->App Setup->Develop->Pages and create new Visulaforce page. Setup -> My Personal Information -> Personal Information -> Edit check the checkbox development mode. When you run the page like this, https://ap1.salesforce.com/apex/MyTestPage. you will find the Page editor at the bottom of the page. You can write you page as well as the controller class associated with it, there it self. Using EclipseIDE you can create the Visulaforce page and write the code.
105. What are Apex Governor Limits? Governor limits are runtime limits enforced by the Apex runtime engine. Because Apex runs in a shared, multitenant environment, the Apex runtime engine strictly enforces a number of limits to ensure that code does not monopolize shared resources. Types of limits that Apex enforces are resources like memory, database resources, number of script statements to avoid infinite loops, and number of records being processed. If code exceeds a limit, the associated governor issues a runtime exception. 106. How to create and host S Control in Salesforce ? http://shivasoft.in/blog/webtech/salesforce/how-to-create-s-control-in-salesforce/ http://shivasoft.in/blog/webtech/salesforce/how-to-host-s-control-in-visualforce-page/ 107. Difference between Sandbox and Development environment? http://shivasoft.in/blog/webtech/salesforce/difference-between-sandbox-and-developer-edition-in-salesforce/ 108. How to schedule export or take the backup of salesforce? http://shivasoft.in/blog/webtech/salesforce/backup-the-salesforce-data/ 109. Do governor limits apply to sandbox instances? Ans : Governor limits do apply to all Salesforce instances (trial, developer, production or sandbox environments). However code coverage and successful execution of test classes is only enforced when deploying to a production environment. 110. What is difference in ISNULL and ISBLANK? ISNULL:
y y
y
y y
y
y
Determines if an expression is null (blank) and returns TRUE if it is. If it contains a value, this function returns FALSE. Text fields are never null, so using this function with a text field always returns false. For example, the formula field IF(ISNULL(new__c) 1, 0) is always zero regardless of the value in the New field. For text fields, use the ISBLANK function instead. Multi-select picklist fields are never null in s-controls, buttons, and email templates, so using this function with a multiselect picklist field in those contexts always returns false. Empty date and date/time fields always return true when referenced in ISNULL functions. Choose Treat blank fields as blanks for your formula when referencing a number, percent, or currency field in an ISNULL function. Choosing Treat blank fields as zeroes gives blank fields the value of zero so none of them will be null. Merge fields can be handled as blanks, which can affect the results of components like s-controls because they can call this function. When using a validation rule to ensure that a number field contains a specific value, use the ISNULL function to include fields that do not contain any value. For example, to validate that a custom field contains a value of ¶1,¶ use the following validation rule to display an error if the field is blank or any other number: OR(ISNULL(field__c), field__c<>1)
ISBLANK: y
y
y
y
y
Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE. Use ISBLANK instead of ISNULL in new formulas. ISBLANK has the same functionality as ISNULL, but also supports text fields. Salesforce.com will continue to support ISNULL, so you do not need to change any existing formulas. A field is not empty if it contains a character, blank space, or zero. For example, a field that contains a space inserted with the spacebar is not empty. Use the BLANKVALUE function to return a specified string if the field does not have a value; use the ISBLANK function if you only want to check if the field has a value. If you use this function with a numeric field, the function only returns TRUE if the field has no value and is not configured to treat blank fields as zeroes.
for further study you can read this link. 111. Is it possible to write the Apex code from user Interface? You can add, edit, or delete Apex using the Salesforce.com user interface only in a Developer Edition organization, a Salesforce.com Enterprise Edition trial organization, or sandboxorganization. In a Salesforce.com production organization, you can only make changes to Apex by using the Metadata API , deploy call, the Force.com IDE, or t heForce.com Migration Tool. The Force.com IDE and Force.com Migration Tool are free resources provided by salesforce.com to support its users and partners, but are not considered part of our Services for purposes of the salesforce.com Master Subscription Agreement. 112. When you can¶t add Time dependent action in Workflow rule? You can¶t add time-dependent actions to a rule if you choose Every time a record is created or edited. For more study, check this article 113. What are the types of email templates available in salesforce.com? 1. 2. 3. 4.
Text HTML with Letter Head Custom HTML Visual force
To study more on email templates, refer this article
114. What is Roll up summary field in Salesforce? Roll up summary field in salesforce calculates the Count, Sum, Min or Max of particular field of any child record. Thus, we can say that Roll up summary field can only be created on Master object. To read further, please check this URL 115. What will happen if the Account is deleted? If the Account is deleted then Contact, Opportunity will also be deleted from Salesforce which are related to that Account. From the database perspective, check below image of child relationships of Account:
Account Child relationship in salesforce 116. How many types of the relationship fields available in Salesforce> Ans : 1.
Master Detail
2.
Lookup
For further study read this. 117. How to create many to many relationships between object. Creating many to many relationship in salesforce is little tricky. You cannot create this type of relationship directly. Follow below steps to create this type of relationship. Create both objects which should be interlinked. Create one custom object, which should have autonumber as unique identification and create two master relationships for both objects, no need create tab f or this object. Now on both object, add this field as related list. 118. If one object in Salesforce have 2 triggers which runs ³before insert´. Is there any way to control the sequence of execution of these triggers? Ans : Salesforce.com has documented that trigger sequence cannot be predefined. As a best practice create one trigger per object and use comment blocks to separate different logic blocks. By having all logic in one trigger you may also be able to optimize on your SOQL queries. 119. How to delete the User from Salesforce? Ans : As per now, salesforce does not allow to delete any user, however you can deactivate the user. Read further« 120. How to delete the users data from Salesforce? Ans : To delete the Users Data go to Setup | Administration Setup | Data Management | Mass Delete Record, from there select the objects like Account, Lead etc and in criteria select the users name and delete all records of that user related to particular object. 121. How to restrict the user to see any record, lets say opportunity? Ans : set up opportunity sharing to be private. If both users are admins or have view all records on opportunity, then that overrides private sharing. 122. What is the difference between trigger.new and trigger.old in Apex ± SFDC? Ans : Trigger.new : Returns a list of the new versions of the sObject records. Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.
Trigger.old : Returns a list of the old versions of the sObject records. Note that this sObject list is only available in update and delete triggers. 123. How to restrict any Trigger to fire only once ? Ans: Triggers can fire twice, once before workflows and once after workflows, this is documented at http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers_order_of_execution.htm: ³The before and after triggers fire one more time only if something needs to be updated. If the fields have already been set to a value, the triggers are not fired again.´ Workaround: Add a static boolean variable to a class, and check its value within the affected triggers. 1 public class HelperClass { 2 public static boolean firstRun = true; 3 } 4 trigger affectedTrigger on Account (before delete, after delete, after undelete) { 5 if(Trigger.isBefore){ 6 if(Trigger.isDelete){ 7 if(HelperClass.firstRun){ 8 Trigger.old[0].addError('Before Account Delete Error'); 9 HelperClass.firstRun=false; 10 } 11 } 12 } 13}