You need to sign in to do that
Don't have an account?
vsf
Help - Boomi REST API call
I am trying a simple Account GET operation on Boomi from Salesforce through REST API. The following is the code in Salesforce which is executed by button click.
public pageReference AccountGet()
{
String username = <Boomi username>;
String password = <Boomi password>;
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);
HttpRequest req = new HttpRequest();
req.setEndPoint('https://platform.boomi.com/api/rest/v1/<Boomi Account Id>/Account/<Boomi Account Name>');
req.setMethod('GET');
req.setHeader('Authorization', authorizationHeader);
Http http = new Http();
HttpResponse res = http.send(req);
AccCreateBody = res.getBody();
AccCreateStatus = res.getStatus();
AccCreateStatCode = res.getStatuscode();
return null;
}
Execution of the above code results in '500 Internal Server Error'. Any pointers on how to proceed will be greatly helpful.
Thanks!
Is this worked for you? I am trying to do the same thing, i woudl appreciate if you please share the working code.
Regards,
PR