We need to create a page in the Salesforce application, which will do the following things: page contains submit form, on submit event it should call external API. Depends on API response page should show success or error message. No data should be saved in salesforce database.
Could you please advise what mechanism should we use: pages, layouts, etc… I am very new with salesforce so I am looking for ANY help.
Thank you.
Best Answer
Here is a contrived example of a controller that makes a request to the Bing search engine:
and just dumps the resulting response HTML back into the same page:
The first time you run it you will be receive an error message that explains that you need to allow access to that remote site - just follow the instructions that are presented. Thereafter the page should just work.
Unlike Bing, many external APIs do require authentication which adds complexity.