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
RPKRPK 

How to pass XML to APEX class which invokes external API?

When a new customer record or lead is created, I want to create an XML of this data and pass to an APEX class.

This APEX class should invoke an already consumed external REST API and pass this XML as parameter to that API.

Any sample?