You need to sign in to do that
Don't have an account?
Accessing related field values from ActivityHistory
Hi
I m trying to execute the query below to extract values of fields - ActivityDate and Subject into a visualforce table :
SELECT(SELECT ActivityDate, Subject FROM ActivityHistories ORDER BY ActivityDate DESC LIMIT 1) FROM Case where Case.CaseNumber='00017011'
How to get the values of fields of inner queries to be displayed?
Is there any other work around as ActivityHistory is not query-able directly ?
My issues is that I have to construct a table that has some column values from SOQL queries Activity History, some values from Case object and values coming from an APi call to an external server. I m able to do the rest of the part but I m not still able to extract field values for ActivityHistory.
Please guide me with the same.
Here is an example of reading the child records in Apex.