You need to sign in to do that
Don't have an account?
Venkata Sravan Kumar Bandari
How to get ids from SOQL
Here is soql i want get ids of attachments as follows and how can i retrieve ids from the list
Now i want ids of attachments into a seperate list how it is possible..
Thanks in advance
list<Account> accs = [select (select id from attachments where createddate < last_N_days:10) from account where is_read__c = true]
Now i want ids of attachments into a seperate list how it is possible..
Thanks in advance
Hello,
You can use for loop iteration over accounts and its attachemnts to get ids of attachments.
In below code "setAttachmetIds" is set of your all attachments ids.
Thanks & Cheers,
Jigar
All Answers
Hello,
You can use for loop iteration over accounts and its attachemnts to get ids of attachments.
In below code "setAttachmetIds" is set of your all attachments ids.
Thanks & Cheers,
Jigar