You need to sign in to do that
Don't have an account?
Pramod Kumar 194
SELECT (SELECT WhoId, Who.name FROM ActivityHistories limit 5) FROM Account where id='0014100000QIRer'
[{"WhoId":null,"Who":null},{"WhoId":null,"Who":null},{"WhoId":null,"Who":null},{"WhoId":null,"Who":null},{"WhoId":null,"Who":null}]
Here i am unable to query name using query on ActivityHistories , If any one know this thing how we can achive this so confirm me asap
How To Get Related Contact Name From OpenActivity object
SELECT (SELECT WhoId, Who.name FROM ActivityHistories limit 5) FROM Account where id='0014100000QIRer'
[{"WhoId":null,"Who":null},{"WhoId":null,"Who":null},{"WhoId":null,"Who":null},{"WhoId":null,"Who":null},{"WhoId":null,"Who":null}]
Here i am unable to query name using query on ActivityHistories , If any one know this thing how we can achive this so confirm me asap
Nothing wrong with your Query, you have to double checck the relationship has been made properly or not.
for your query i got the result. just remove the condition part in your query and do the general fetch if its all null. you have to check your relationship.
Hope this will helps you.
Thanks
karthik