Skip to main content
17 events
when toggle format what by license comment
Feb 22, 2016 at 16:09 comment added shilpa Tried Opening a case with Salesforce and they have listed this as a bug and still in R&D. Here's the link. success.salesforce.com/issues_view?id=a1p300000008YpjAAE I am stuck forever.
Feb 9, 2016 at 17:04 comment added shilpa I am not sure if this will work as I am clicking on 'save' button of task to save the attchment - should i be writing the trigger on task? but, i haven't figured out any logic for that :-o
Feb 9, 2016 at 16:57 comment added shilpa Thanks @crop1645! Yes the trigger is active @Adrian Larson
Feb 9, 2016 at 14:46 comment added Adrian Larson Other than some inefficiencies, your included code seems fine. Are you sure the Trigger is Active?
Feb 9, 2016 at 5:12 comment added cropredy (1) you may run into heap issues with batch insert of many attachments; to be robust, you'll need to use an async pattern (2) The test for object type can be simpler and more robust/transparent - for any variable of type ID, say attachment.parentId, you can do if (attachment.parentId.getSobjectType() == Schema.Task.SobjectType) {..}; (3) no need to test for size of attachmentsToInsertOnOpp before insert. Empty lists can be inserted at no cost in DML limits
S Feb 8, 2016 at 21:48 history suggested Blair Kristin CC BY-SA 3.0
formatting fix
Feb 8, 2016 at 21:41 review Suggested edits
S Feb 8, 2016 at 21:48
Feb 8, 2016 at 21:38 history edited shilpa CC BY-SA 3.0
added 1782 characters in body
Feb 8, 2016 at 21:35 review Low quality posts
Feb 8, 2016 at 21:40
Feb 8, 2016 at 21:33 comment added shilpa @BlairKristin Thanks! Code i am trying to add is too long for the post
Feb 8, 2016 at 21:31 comment added Blair Kristin @user28253 welcome to the community. Make sure that when you post questions that you provide information on what you have tried and your current code. This will prevent your question from being voted down and help you get an answer quicker. Welcome!
Feb 8, 2016 at 21:29 answer added Blair Kristin timeline score: -1
Feb 8, 2016 at 21:29 comment added shilpa I am trying to copy an attachment attached to a task on Opportunity to Note and attachments section of opportunity itself. Here is the code:
Feb 8, 2016 at 21:20 review First posts
Feb 8, 2016 at 22:13
Feb 8, 2016 at 21:19 comment added Derek F I have an After Insert trigger working on Attachment in my company's orgs. Please edit your question to include more details.
Feb 8, 2016 at 21:17 comment added Jarvis What are you trying to do in the after insert event ? What actually do you see in the debug logs ?
Feb 8, 2016 at 21:15 history asked shilpa CC BY-SA 3.0