[
https://issues.apache.org/jira/browse/CAMEL-10452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zoran Regvart resolved CAMEL-10452.
-----------------------------------
Resolution: Implemented
Added {{QueryHelper}} to create SOQL that simulates {{SELECT *}} type of query
use:
{code:java}
String selectAll = QueryHelper.queryToFetchAllFieldsOf(new Account());
{code}
And use that query when fetching data via SOQL endpoints ({{salesforce:query}},
{{salesforce:createBatchQuery}} or in composite API).
> camel-salesforce: Add an option to simulate SELECT * from
> ---------------------------------------------------------
>
> Key: CAMEL-10452
> URL: https://issues.apache.org/jira/browse/CAMEL-10452
> Project: Camel
> Issue Type: Improvement
> Components: camel-salesforce
> Reporter: Luca Burgazzoli
> Assignee: Zoran Regvart
> Priority: Minor
> Fix For: 2.22.0
>
>
> As today it is not possible to run a query like SELECT * from but one is
> forced to list all the field he want.
> It would be nice to auto generate a statement using SObject meta data so one
> can write:
> from("salesforce:stream?SObjectName=Case&SObjectQueryFromName=true")
> to get all the fields the SObjectName supports.
> [~dhirajsb] what do you think ?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)