Enums • Enum (or enumerated list) try a conceptual you to definitely places that property value a restricted place regarding given identifiers. • So you’re able to identify an Enum, fool around with enum keyword about adjustable report then determine the fresh selection of values. • By simply making it Enum, you really have authored another analysis type called 12 months that may be used because some other studies type.
5. Describe Apex Parameters? Local parameters are ple: • Integer we = 0; • Sequence str; • Account a great; • Account[] accts; • Put s; • Chart yards;
• One another provides groups, inheritance, polymorphism, and other common OOP possess. • Each other have a similar name varying, phrase, and you will looping syntax. • One another have the same cut off and you can conditional statement sentence structure. • One another utilize the exact same object, variety, and you may opinion notation. • They are both gathered, strongly-authored, and you may transactional.
• Top works inside a multiple-tenant ecosystem that will be extremely managed in its invocation and governor limits. • To avoid distress which have situation-insensitive SOQL question, Apex is also situation-insensitive. • Apex is on-demand which can be compiled and you will conducted in the cloud. • Top is not a standard-purpose program writing language it is instead a proprietary words used for particular business reasoning functions. • Apex means product testing having innovation to the a launch environment.
eight. Explain what is Cause? Cause is a password which is executed in advance of otherwise following the listing is updated otherwise inserted.
In the event the salesforce allow use to modify an identical target or confirm a comparable target using pre and post both result in knowledge thus as to the reasons prior to end up in are present?
8. As soon as we Play with an ago Lead to and you will Just after End up in? play with “before” produces to help you validate studies or posting areas for a passing fancy target. use “after” leads to so you’re able to update moms and dad or relevant info.
nine. If https://datingranking.net/es/matchocean-review/ any question can be done for the same object without Soql using before trigger enjoy so just why we choose for good after end in feel.
10. What is the limit group dimensions in one end up in execution? Standard batch dimensions are two hundred ,However restrict group dimensions are 2000.
If we create up-date operation into the checklist from inside the immediately after enhance experience logic recursive causes often happen
eleven. If an individual object within the sales force has dos causes and that runs “just before Enter”. Can there be in any manner to deal with the fresh series out of delivery regarding these types of leads to? Salesforce have noted you to definitely cause series can not be predefined. Because a best practice create you to bring about each target and rehearse feedback reduces to separate some other reasoning reduces.
Lower than framework parameters commonly go back both true or incorrect. Produce.isBefore (returns real in the event the cause framework are Before Form) End in.isAfter (production genuine in case your end up in perspective was Just after Mode) Trigger.isInsert (returns true should your end up in context was Input) End up in.isUpdate (efficiency true if your end up in context are Upgrade) Bring about.isDelete (efficiency real in case your cause context is actually Delete) Bring about.isUndelete (production correct if your result in framework is actually Undelete) End up in.isExecuting (returns real in case the apex class method is providing call regarding Top Trigger)
Less than context details commonly store records on runtime. trigger.old (areas history (old models) of the records.) end up in.oldMap (areas background (old products) of the records along with id.) lead to.the latest (places the latest brand of the brand new info.) lead to.newMap (areas the latest sorts of the info and additionally id.)
thirteen. Which are the recursive leads to and how to stop? Using static boolean varying in a top classification (we would like to perhaps not continue fixed boolean variable inside of the result in) we are able to prevent recursive triggers.
14. What exactly is Mixed-DML-Operation error and how to end? When we do DML operation toward standard/personalized object and you may around the world items(Associate, UserRole, Group, GroupMember, Permission Place, an such like. ) when you look at the exact same deal which mistake may come.

