What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-25 05:16:08
how to supply username and password while making rest callouts in salesforce
String endpoint='https://xyz...com/'; String userID='xyz'; String password='pass'; String jsonBody ='userID=' + userID + '&password=' + password; HTTP auth = new HTTP(); HTTPRequest r = new HTTPRequest(); r.setClientCertificateName('certificate_Name')... Add solution