Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in Salesforce by (11.9k points)

I'm not 100% sure of the terminology on how to describe what I'm looking to do, so I apologize in advance.

I have a custom entry page for an object in Salesforce, and I'm curious as to whether or not it's possible to call an external website when I click the save button.

Rough Example:

  1. A user enters in a new Account and hits save.
  2. After saving the Account, The extender class calls to a webpage that inserts an entry into an external database to let a different set of users external to salesforce know that something new has been created.

Again, I apologize. I know I'm not describing this very well. Thank you for any and all input!

1 Answer

0 votes
by (32.1k points)

Yes, off course it is possible. Have a look at the Invoking Callouts Using Apex section of the Apex Code Developer's Guide. Salesforce basically refers to this (your Apex code connecting to another web server) as an HTTP Callout.

Also, take a look at questions with the "callout" tag on the dedicated StackExchange site for Salesforce.com.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...