I'm looking for a good example of a Salesforce query using Camel in Java. I've been through the documentation and Camel source unit tests but have not been successful pulling data from Salesforce. The same query works fine from Postman. I'm able to submit records to Salesforce without an issues using Camel.
This is the test case I've been trying. I get an empty response from the server. Any tips or a good example of functional code is appreciated. Thanks. @Test public void testQuery() { try { salesforceComponent.start(); SalesforceEndpoint endpoint = (SalesforceEndpoint) salesforceComponent.createEndpoint("query"); endpoint.getConfiguration().setSObjectQuery("select email from Contact"); Producer producer = endpoint.createProducer(); producer.start(); Exchange exchange = producer.createExchange(); producer.process(exchange); SalesforceResponse response = SalesforceUtils.parseResponse(exchange); System.out.println("Success: " + response.isSuccess()); System.out.println("Errors: " + response.getErrors()); System.out.println("ID: " + response.getId()); producer.stop(); } catch (Exception e) { fail(e.getMessage()); } } -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Salesforce-example-tp5745712.html Sent from the Camel - Users mailing list archive at Nabble.com.