Timeline for Code in a @future method not working
Current License: CC BY-SA 3.0
37 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 4, 2018 at 20:22 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 3, 2018 at 4:23 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 2, 2018 at 16:51 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 27, 2018 at 6:34 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 25, 2018 at 23:33 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 18, 2017 at 11:38 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 18, 2017 at 8:11 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 10, 2017 at 16:08 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 10, 2017 at 12:25 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 8, 2017 at 14:47 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 6, 2017 at 7:07 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 5, 2017 at 13:53 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 4, 2017 at 3:47 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 21, 2017 at 21:30 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 16, 2017 at 22:59 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 6, 2017 at 20:31 | answer | added | Jeremy Nottingham | timeline score: 1 | |
Jan 6, 2017 at 20:21 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 6, 2016 at 8:58 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 3, 2016 at 11:21 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 28, 2016 at 11:20 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 29, 2016 at 4:11 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 24, 2016 at 4:55 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 23, 2016 at 22:24 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 23, 2016 at 14:23 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 1, 2016 at 0:14 | comment | added | Eric | I just tried this as a trigger on attachment and when a new task is created and an attachment added to the task during creation the trigger on the insert of attachment does not fire. If I added the attachment directly to the opportunity the trigger fires. | |
Sep 24, 2014 at 20:49 | answer | added | SFOnlineSolutions | timeline score: 0 | |
Sep 24, 2014 at 20:33 | comment | added | James Allen | crop1645 I re-wrote this as an after insert trigger on the attachment object. I still don't understand why it works from the task object except when from SFO. I also used this thread as a big help and basis for the code. link | |
Sep 24, 2014 at 19:33 | comment | added | James Allen | The after insert trigger work great when a task is created from SFDC with an attachment. The problem is only when the task is created from SFO. I am still unsure why the WhatId is not available, but I don't think that has anything to do with why this code will not work. The WhatId and T.Id are both displayed in the debug statement. But the SOQL select does not return any rows. If I hard code a taskID into the @future code instead of t.Id it does work. So the Functionality of the code is good. | |
Sep 24, 2014 at 19:17 | comment | added | Adrian Larson♦ | Your code would look nicer if you used taskWhatId.startsWith(Opportunity.sObjectType.getDescribe().getKeyPrefix()). Except of course you would cache that prefix outside your for loop! | |
Sep 24, 2014 at 19:13 | comment | added | cropredy |
Your trigger is an after insert trigger. As such, how could there be any Attachments whose parent is the task being inserted? Attachments can't be added to any object until the object has been committed.
|
|
Sep 24, 2014 at 18:40 | comment | added | Rao | did you check apex jobs to see if something is queued related to this trigger? | |
S Sep 24, 2014 at 18:39 | history | suggested | Jagular | CC BY-SA 3.0 |
split log results into own section
|
Sep 24, 2014 at 18:31 | review | Suggested edits | |||
S Sep 24, 2014 at 18:39 | |||||
Sep 24, 2014 at 18:29 | review | First posts | |||
Sep 24, 2014 at 18:33 | |||||
Sep 24, 2014 at 18:28 | history | edited | James Allen | CC BY-SA 3.0 |
added 1735 characters in body
|
Sep 24, 2014 at 18:27 | history | edited | Phil Hawthorn | CC BY-SA 3.0 |
added 188 characters in body
|
Sep 24, 2014 at 18:26 | history | asked | James Allen | CC BY-SA 3.0 |