Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to have multiple items in the 'Group By' in SOQL query #29

Open
sgoode opened this issue Mar 23, 2021 · 1 comment
Open

Unable to have multiple items in the 'Group By' in SOQL query #29

sgoode opened this issue Mar 23, 2021 · 1 comment

Comments

@sgoode
Copy link

sgoode commented Mar 23, 2021

I am trying to run a SOQL query in Realfire that I run in Work Bench without issue.

This is not specific to this object and these columns it has this issue with any object and columns where I try to have more than 1 column in the 'Group By' in Realfire.

Query
select calendar_year(createddate), calendar_month(createddate), count(id) from event_history__c
where name = 'schedulingAutomation' and
subject__c != '0'
group by calendar_year(createddate), calendar_month(createddate)

In RealFire I receive this error
Error parsing [select calendar_year(createddate), calendar_month(createddate), count(id) from event_history__c
where name = 'schedulingAutomation' and
subject__c != '0'
group by calendar_year(createddate), calendar_month(createddate)]. Error: missing EOF at ','

If I past the SOQL in WorkBench it is successful. If I remove the second item in the 'Group By' it is successful in Realfire as well

@brsanthu
Copy link
Collaborator

@sgoode this is an parsing issue in Realfire. We will add support for it in up coming versions. For now, when you encounter soqls which Realfire doesn't, you can execute Direct. When you execute direct, we skip the parsing of the soql and send the query as is to Salesforce. It also means that you cannot run soqls like select * from account.

You can execute direct via:

  1. Select the soql you want to run
  2. Right click, select Execute Other -> Execute Direct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants