Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sap1.inputHttpHeaders_x = new Map<String, String>();
- //Setting a basic authentication header
- String username = 'SFDCUSER';
- String password = 'xxxxxxc1';
- Blob headerValue = Blob.valueOf(username + ':' + password);
- String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
- sap1.inputHttpHeaders_x.put('Authorization',authorizationHeader);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement