In this tutorial, we are going to solve the Module called “External Services“. In this lecture, you are going to connect an external service to Salesforce and invoke methods based on that service. Solve the quiz on Trailhead.
#1. Get Started with External Services
Solve these tests and get 100 points
Q1)External Services can be used to:
I)Authenticate into a named credential to update its database
II)Declaratively create a schema to use in External Services
III)Connect to an external endpoint to bring its logic into Salesforce
IV)Declaratively authenticate the external database for External Services
Connect to an external endpoint to bring its logic into Salesforce
Q2)Which of these is a good use case for External Services?
I)Connect to a time management app that your employees need to use
II)Obtain information from a background check agency about potential candidates you track in Salesforce
III)Connect to a credit reporting agency to create data about your customers
IV)B and C
V)A and C
B and C
Q3)At a high level, which of the following is true about External Services?
I)The steps to create an external service are done by the public API provider in Named Credentials.
II)Much of the work to register an external service in Salesforce can be performed declaratively.
III)You must learn to program using Apex if you want to use External Services.
IV)Using an OpenAPI specification is optional if you want to register an external service registration.
Much of the work to register an external service in Salesforce can be performed declaratively.
Check the Quiz to Earn 100 Points
The second attempt earns 50 points. Three or more earn 25 points.
#2. Define an API Specification for an External Service
Solve these tests and get 100 points
Q1)What is an API spec?
I)A human-readable file that External Services consumes to generate invocable actions
II)A human-readable file that flow creates for the parameters needed in the definition when your flow runs
III)A human-readable file definition that flow outputs at the end of a flow interview
IV)A machine-readable external service that must be compiled
A human-readable file that External Services consumes to generate invocable actions
Q2)Which of the following are elements of a valid schema for External Services?
I)Response code output contains complex objects, parameters have names
II)Response code output does not contain complex objects, any method can be used
III)Schema adheres to OpenAPI specification, parameters have names
IV)Schema has less than 100,000 characters, parameters use complex named objects
Schema adheres to OpenAPI specification, parameters have names
Q3)What might cause your API spec to fail registration?
I)It includes a name that is not reserved
II)It includes all supported methods
III)It exceeds the limit for total number of actions.
IV)Parameters have descriptive names
It exceeds the limit for total number of actions.
Check the Quiz to Earn 100 Points
The second attempt earns 50 points. Three or more earn 25 points.
#3.Register an External Service
Solve these tests and get 100 points
Q1)Once you have an API spec, what prerequisites do you need to complete before you register an external service?
I)Give the service provider the named credential so that it can access Salesforce
II)Ensure that the remote credential the service provider uses has endpoints
III)Define a named credential and authorize endpoint access
IV)Create your remote credential and export it
Define a named credential and authorize endpoint access
Q2)What can you do after you successfully register an external service?
I)Validate your Apex actions using the Developer Console
II)Select the named credential you defined so that the remote credential can access the schema
III)Invoke actions based on the external source via a flow
IV)Invoke flows from the External Services wizard
Invoke actions based on the external source via a flow
Q3)Which of the following is true about the Apex actions generated by External Services?
I)They can be mapped to the flow you created before registering your service
II)They are mapped directly from the operations in the schema definition and are visible in the wizard
III)They are available only within the wizard to protect service security
IV)They become obsolete once you run the wizard along with a flow
They are mapped directly from the operations in the schema definition and are visible in the wizard
Check the Quiz to Earn 100 Points
The second attempt earns 50 points. Three or more earn 25 points.
#4. Use External Services in a Flow
Hands-on Challenge
Solve these tests and get +500 points
To solve this challenge you can watch the video which is given below.