You need to sign in to do that
Don't have an account?
Laurie Drew
Hi I am new to SOQL and trying to write a query on the account object that will return a count of the number of records that have been edited in the last 7 days.
I tried this code but get error on compile Illegal assignment from integer to list
public with sharing class TestDisplayQueryList{
public List<Account> Records {get; set;}
public TestDisplayQueryList(){
Records =
[select count() from account where LastModifiedDate = LAST_N_DAYS:7];
}
}
Any help would be greatly appreciated!
Help with query
Hi I am new to SOQL and trying to write a query on the account object that will return a count of the number of records that have been edited in the last 7 days.
I tried this code but get error on compile Illegal assignment from integer to list
public with sharing class TestDisplayQueryList{
public List<Account> Records {get; set;}
public TestDisplayQueryList(){
Records =
[select count() from account where LastModifiedDate = LAST_N_DAYS:7];
}
}
Any help would be greatly appreciated!
All Answers
Something of this nature
I am not sure if you can use * in SOQL though..