Integration Flashcards
What is required to use Generic Streaming?
- Streaming Channel.
- Client Subscription
- Streaming Channel Push REST API
What are 1st Generation streaming services?
PushTopic (data changes), General Streaming.
Both use Streaming API. First reflect data changes specified in query (PushTopic query). Second one pushes events not tied to record changes.
What are 2st Generation streaming services?
Change Data Capture (PushTopics without queries), Platform Events (new Generic Streaming)
Where External Services can be used?
In Flows
What is max schema size for External Service?
4.0MB
What can be used to cover External Services with tests?
HttpCalloutMock
How to setup ExternalService?
An external service requires a named credential, a url and authentification settings.
It also requires to specify the schema URL path (or endpoint) or the complete schema (OpenAPI 2.0 format) while registering an external service
What is preffered to make synchronous callouts to validate / check something before proceed record in Salesforce?
Make callouts from LWC or Visualforce
Difference between @HttpPut and @HttpPatch?
@HttpPut is used in methods performing upsert-like operations. @HttpPatch is used in methods performing update operations.
Difference between @HttpPut and @HttpPatch?
@HttpPut is used in methods performing upsert-like operations. @HttpPatch is used in methods performing update operations.
How to expose class as a SOAP service?
Mark class as `global`, add `static` and `webservice` declarations to it's methods. Generate WSDL file for consuming.
How to expose class as a REST service?
Mark class as global with @RestResouce annotation with case-sensitive path in urlMapping. All methods should be static, global.
What can be used to parse emails and use data to create records?
Messaging.InboundEmailHandler
How to create InboundEmailHandler?
Create class that implements Messaging.InboundEmailHandler with global-access modifier and has handleInboundEmail(inboundEmail, inboundEnvelope) global instance method that returns InboundEmailResult.
How to return successfull InboundEmailHandler result operation?
Using InboundEmailResult.success = true
What types of return values webservice methods don’t support
- Maps.
- Sets.
- Pattern objects.
- Matcher objects
- Exception objects.
What class is used to mock webservice callout in tests?
WebServiceMock class
What can be used in Visualforce to show reports created in Salesforce?
analytics:reportChart
What Visualforce component can be used to draw the chart from supplied data?
apex:chart
What features can be implemented using External IDs?
Deep linking (links to records in external systems) and mashups (using Canvas).
What is Canvas?
Canvas enables you to easily integrate a third-party application in Salesforce. It’s a set of tools and JS APIs user can use to expose an applications as a canvas app?
It can be used with External ID to create Mashups