function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MDhillonMDhillon 

How to consume an external REST API from SFDC?

Can we consume an external REST API of a different website within salesforce? my requirement is to get data from an external api and save it to Salesforce.

regards,
mani
Jayesh W.Jayesh W.
Hi Mani,

As per my understanding we can do that,

You need to add the external API url to "Remote Site Settings" under Administrator -> Security Controls -> Remote Site Settings

and then you should be able to consume that API.

Regards,
Jayesh Wairale
Rafael.Martins.SantosRafael.Martins.Santos
Hi,
Has anyone managed to do this?
I need consume the Rest API of another system, but I dont know how I do that.
Can someone have some example of how do that using too authentication?

Thanks
Rafael