You need to sign in to do that
Don't have an account?
Philippe Coste 2
RelationShip Query with custom field on standard object
My Object Acount has a custom field ProfessionalReference__c
When i execute in developer : select id, type, what.name from task : It's work
When I execute : select id, type, what.ProfessionalReference__c from task.
It doesn't work. Could you please explain ?
Thanks
When i execute in developer : select id, type, what.name from task : It's work
When I execute : select id, type, what.ProfessionalReference__c from task.
It doesn't work. Could you please explain ?
Thanks
You have to do Account. in order to access the fields on Account from a query on Task.
One more question please :
select id, type, Owner.name from task ==> GOOD
select id, type, Owner.ExternalID__c from task => NOT GOOD/...
Any Idea?
Try below query.
Reference:
https://developer.salesforce.com/blogs/tech-pubs/2012/09/soql-polymorphism-or-how-i-learned-to-love-the-polymorphic-relationship.html
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar