A company that is a leading provider of courses and training delivers courses using third-party trainers. The trainer for the company has to be verified by 10 different training accreditation verification agencies before providing training for the company. Each training accreditation agency has its own response time, which means it could take days to confirm a trainer.
The company decided to automate the trainer accreditation verification process by integrating it with the agency's web services.
What is the recommended approach to automate this process?
- Make an Apex callout using @future annotation to make the callout to all different agencies. The response should update the trainer status to “verified”.
- Use middleware to handle the call out to the 10 different verification services, the middleware will handle the business logic of consolidating the verification result from the 10 services, then make a call-in to Salesforce and update the verification status to “verified”.
- Create a trigger on the trainer record to make a callout to each verification agency’s, write business logic to consolidate the verification then update the trainer status to “verified”.
- Use Salesforce External Service to make the call out; Salesforce External Service should check the verification agencies until the result is verified, then update the trainer status to “verified”.
Reveal Solution Next Question