Timeline for delete multiple records from an object [closed]
Current License: CC BY-SA 3.0
20 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 21, 2016 at 6:41 | vote | accept | Anzar | ||
| Jul 21, 2016 at 6:41 | |||||
| Jan 20, 2016 at 14:00 | comment | added | Anzar | @Stygon no prob :) | |
| Jan 20, 2016 at 12:25 | comment | added | Prajith | @Anzar awesome. Glad I could help. Question is still on hold, cant post an answer though. :( | |
| Jan 20, 2016 at 9:26 | comment | added | Prajith | Then convert the set of string to set of IDs as " Set<ID> IDsToDelete = (Set<ID>)JSON.deserialize(JSON.serialize(sel_idSet), Set<ID>.class); ". Then query out all the accounts "WHERE id IN :IDsToDelete ". Delete the list of accounts returned in the query. An answer would have looked much better on the yes, sorry. | |
| Jan 20, 2016 at 9:24 | comment | added | Prajith | @Anzar can't add answer due to question being on hold. Firstly convert sel_id into a set of string as "Set<String> sel_idSet = new Set<String>(); sel_idSet.addAll(sel_id );". This is because we don't want repeated IDs while deleting stuff. | |
| Jan 20, 2016 at 7:42 | comment | added | Anzar | @Stygon you are right I want this.. | |
| Jan 18, 2016 at 18:45 | history | closed | Ratan Paul superfell Jenny B Himanshu Adrian Larson♦ | Needs details or clarity | |
| Jan 18, 2016 at 18:24 | comment | added | Prajith | If it is indeed a list of IDs, then we can cast it into sfdc IDs and then delete the corresponding accounts. If you agree that my understanding is right then we can proceed - awaiting your reply. | |
| Jan 18, 2016 at 18:22 | comment | added | Prajith | @Anzar, could you please tell what does the variable sel_id does on the page. It is a list of string, does it get populated with individual elements as account IDs or is my understanding completely wrong. Thanks | |
| Jan 18, 2016 at 17:06 | review | Close votes | |||
| Jan 18, 2016 at 18:46 | |||||
| S Jan 18, 2016 at 13:00 | history | suggested | Nitin | CC BY-SA 3.0 | Added tags |
| Jan 18, 2016 at 12:58 | answer | added | Pavan tej | timeline score: 1 | |
| Jan 18, 2016 at 12:55 | comment | added | Tushar Sharma | use wrapper class. This might help (Wrapper class)[salesforce.stackexchange.com/a/105762/11239] | |
| Jan 18, 2016 at 12:52 | comment | added | Anzar | yeah I dont know how to pass multiple id's ..:( | |
| Jan 18, 2016 at 12:52 | comment | added | Tushar Sharma | then pass multiple id or you don't know how to pass multiple Ids. In case use wrapper class. | |
| Jan 18, 2016 at 12:51 | comment | added | Anzar | yeah i am passing id in Account but its for only 1 record... | |
| Jan 18, 2016 at 12:51 | review | Suggested edits | |||
| S Jan 18, 2016 at 13:00 | |||||
| Jan 18, 2016 at 12:50 | comment | added | Tushar Sharma | Are you facing any issue? | |
| Jan 18, 2016 at 12:48 | history | edited | Tushar Sharma | CC BY-SA 3.0 | added 58 characters in body |
| Jan 18, 2016 at 12:48 | history | asked | Anzar | CC BY-SA 3.0 |