Process Automation Flashcards
Debug Production Issue Steps
- Debug Trace On User
- Log Inspector
3.Verify process/trigger is active
When do validations fire?
Custom validations fire after field updates by processes but not after workflow field updates.
Do processes fire after workflow rules?
Yes
What is required on a custom exception class
It should extend the Exception Class
How is Metadata Type defined
Using the <name> element</name>
What is the <Types> element</Types>
it contains the metadata type to be retrieved or deployed in package
what is package.xml
defines components that need to be retrieved or deployed
Requirements to expose Rest class that makes callout
annotate exposed methods with http method
define url mapping
annotate top-level class with @RestResource
Outline Continuation Class
3 callouts can be made using addHTTPRequest()
Use async call outs
Chain requests
Prevent loss of published event messages
Suspend subscription of Apex Trigger to event
Get metadata of object to display on VF Page
- getLabel()
- getMap() - returns map to access field names
- getPicklistValue()
Prevent duplication of Queueable Apex
QueueableDuplicateSignature class
Chain async jobs
Use queueable apex
Schedule Batch class
System.schedule
When can you directly access a field via a SOQL Query
When the query only returns one result
Make callouts to a SOAP Service
Webservice.Callout.invoke()
Control queueable apex call depth
MaximumQueueableStackDepth
How does SOSL Return data
In a list of a list of sObjects
Search result can be accessed by creating arrays
How to describe sObjects
Schema.describesObjects
return App specific info in Apex
- List<Schema.DescribeTabSetResult> abc = Schema.DescribeTab</Schema.DescribeTabSetResult>
- Loop through List<Schema.DescribeTabResult></Schema.DescribeTabResult>
- DescribeTabResults.getLabel() (returns App Name)
Where can the webservice keyword be used?
- Top Level Outer Class Variables
- Top Level Outer Class Methods
- Member variables of an inner class
Points about URLMapping
- Is case sensitive
- can have a * wildcard
Ideal automation to publish platform events
Flow
Testing Flow With External Services
Can be tested using Apex Unit Tests