The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Step 2: Write Apex to Send an HTTP Call to the Connected App

After you configure the remote site, write the Apex code that sends an HTTP request to the connected app to initiate the content sync. To allow the panel components to trigger the Apex methods, use the @AuraEnabled annotation for each method.

The endpoint must match the URL entered in the Remote Site URL field.

This Apex sample includes methods for calls to Heroku and Marketing Cloud.

See Also