You need to sign in to do that
Don't have an account?

where the activity custom fields are stored?
I have a group of custom activity fields, however I cant find them in either Task or Event, so I am wondering if they are stored some where else?
If i try to query on Force.com explorer:
SELECT id, custom_field__c FROM EVENT
or
SELECT id, custom_field__c FROM TASK
No such column on entity task or event
If i try to query on Force.com explorer:
SELECT id, custom_field__c FROM EVENT
or
SELECT id, custom_field__c FROM TASK
No such column on entity task or event
I queried my Task object in the developer console for a field that did not exist..
I then went to customise, created a custom activity field, with default security settings
literally tabbed back to the developer console and hit execute, and it loaded all my Task data (with no values for this field, of course, but the column there) no problem :)
Hopefully this proof will spur you on to the source of your problem! I would suggest cached, or incorrectly synced meta data is at play somewhere.
All Answers
Task t = [Select Department__c from Task];
Event e = [Select Department__c from Event];
I queried my Task object in the developer console for a field that did not exist..
I then went to customise, created a custom activity field, with default security settings
literally tabbed back to the developer console and hit execute, and it loaded all my Task data (with no values for this field, of course, but the column there) no problem :)
Hopefully this proof will spur you on to the source of your problem! I would suggest cached, or incorrectly synced meta data is at play somewhere.