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

SOQL - Attachments Parent ID not coming through
Hi
When I run a query on attachments to pull their parent id, it works fine for eg Accounts:
Select id, parent.id from Attachment
where parent.type = 'Account'
However for Tasks I get only a 'null parent' return:
select id, parent.id from attachment
where parent.type = 'Task'
Does anyone have the answer to this or a workaround?
Cheers,
Andy
When I run a query on attachments to pull their parent id, it works fine for eg Accounts:
Select id, parent.id from Attachment
where parent.type = 'Account'
However for Tasks I get only a 'null parent' return:
select id, parent.id from attachment
where parent.type = 'Task'
Does anyone have the answer to this or a workaround?
Cheers,
Andy
where parent.type = 'Task'
All Answers
https://success.salesforce.com/ideaView?id=08730000000isD3AAI
where parent.type = 'Task'