Salesforce mind dumps
-
Universal Container wants Opportunities to no longer be editable when reaching the Closed/Won Stage How Should a developer accomplish this?
Use a Validation rule -
Which Salesforce org has a complete duplicate copy of the production org including data and Configuration?
Full Sandbox -
A developer has following requirements
- Calculate the total ammount on an order
- Calculate the line amount for each line Item based on quantity selected and price.
- Move Line Items to a different Order if a line Item is not stock
Line Item has a Master detail field to order and the Master can be re-parented -
A developer is implementating an Apex Class for a financial system, Within the class, the variables ‘creditAmount’ and ‘debitAmount’ should not be able to change once a value is assigned. in Which two type can the developer declare the variable to ensure their value can only be assigned one time? Chosse 2 answers
A, B -
Which action may cause triggers to fire?
Update to feed Items (Only FeedItems of type TextPost, LinkPost, HasLink, ContentPost, and HasContent can be inserted, and therefore invoke the before or after insert trigger. User status updates don’t cause the FeedItem triggers to fire.) (FeedAttachment isn’t a triggerable object. You can access feed attachments in FeedItem update triggers through a SOQL query) -
Universal Containers wants a list button to display a Visualforce page that allow users to edit multiple records? Which Visualforce feature supports this requirement?
RecordSetVar page attribute -
A developer wants to invoke an outbound message when a record meets a specifi criteria Which three feature satisfy this use case? chosse 3 answers
B, C, E Related link -
A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
B -
In the following example, which sharing context will myMethod excute when it is invoked? public Class myClass{ public void myMethod(){ /* implementation*/} }
C -
A developer needs to have record with specific filed values in order to test a new Apex class. What should the developer do to ensure the data is availble to the test?
B -
Which two operations can be performed using a formula field? Choose 2 answers
C,D -
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
A -
If Apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits? (Choose two.)
A,C -
What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface? (Choose two.)
A,C -
A developer considers the following snippet of code:
Boolen isOk; integer x; String theString = 'Hello'; if(isOk == false && theString == 'Hello'){ x = 1; }else if(isOk == false && theString == 'Hello'){ x = 2; }else if(isOk != null && theString == 'Hello'){ x = 3; }else{ x = 4; }
DI know its weird but in salesforce a Boolean that is not declared a value is NULL, not false.
Othere questions
-
How can a developer determine if a CustomerObject__c record has been manually shared with the current user in Apex?
By querying CustomerObject__Share TO access sharing programmatically, you must use the share object accociated with the standard or Custom object for which you want to share. -
In which order does Salesforce execute events upon saving a record?
A Correct. • Runs system validation check. • Executes all before triggers. • Runs most system validation steps again, such as verifying that all required fields have a non-null value, and runs any user-defined validation rules. The only system validation that Salesforce doesn’t run a second time (when the request comes from a standard UI edit page) is the enforcement of layout-specific rules. • Executes duplicate rules. If the duplicate rule identifies the record as a duplicate and uses the block action, the record is not saved and no further steps, such as after triggers and workflow rules, are taken. • Saves the record to the database, but doesn’t commit yet. • Executes all after triggers. • Executes assignment rules. • Executes auto-response rules. • Executes workflow rules. • If there are workflow field updates, updates the record again. • If the record was updated with workflow field updates, fires before update triggers and after update triggers one more time (and only one more time), in addition to standard validations. Custom validation rules, duplicate rules, and escalation rules are not run again. -
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)
B,D