Platform Developer 1 Flashcards
What special character appends geolocation fields?
__s
Roll up field limits
- Can’t roll up formula fields that reference cross-objects or use dynamic functions
Formula Field Limits
- 3900 Characters
- 4000 bytes of source
- 5000 bytes compiled
- No long text
- No circular formula references
How can you check if a user has read access to a visual force page field?
isAccessible()
Partial Sandbox vs Full Sandbox
- Partial has shorter refresh interval
- Partial stores less data
- Full can use templates
Uses of Workbench
- can be used on prod or sandbox
- does all CRUDs
- can use REST API
- can describe Metadata
What kind of relationship links a child external object to a parent standard or custom object?
indirect lookup
What options are available for Unit Tests?
- Always run async (bool)
- new
- rerun
- rerun failed tests
- abort
- new suite
- run all
- run all in a class
Name all the components in a bundle
- component
- controller
- helper
- style
- documentation
- renderer
- design
- svg
Name 3 visual force components for custom tables
- -
Differences between Import Wizard and Data Loader
Wizard <= 50k records Wizard Limited standard objects Wizard All custom objects DL no record limit DL imports AND exports DL import any object except user
What attribute lets you render a visual force page as PDF?
renderAs=”pdf”
What method lets you test your application in different user contexts?
runAs()
How is code coverage calculated?
# of unique apex lines executed during test ---------------------------------------------------------------- # of unique apex lines in all triggers and classes
(lines in test methods are ignored)
What can cross-object formulas reference?
- related parent records
- regardless of user access
- up to 10 relationships away
3 options of RecordTypes
- different business processes
- different picklist values
- different page layouts
Security Access cannot be set for…
Triggers
Security behavior for apex controller extensions
system mode for custom
extending standard controllers will result in the standard behaviors running in user and the custom in system
Which items default to System security mode?
Triggers Custom webservices Test classes custom controllers custom extensions
Which items default to User security mode
standard controllers
standard extensions
anonymous blocks
Syntax for extending and existing controller
constructor takes 1 arg Apex.StandardController or
In the visual force: extensions=
Gov Limit # of DML statements
150
Gov Limit DML statements processed
10,000
Gov Limit SOSL queries
20
Gov Limit SOSL records retrived
2000
Gov Limit SOQL queries
100 (200 async)
Gov Limit SOQL records retrieved
50,000
How do you cancel a trigger?
addError()
Syntax to declare trigger
trigger on ()