Skip to main content
Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Tweeted twitter.com/#!/StackSalesforce/status/379716297476808704
Notice added Authoritative reference needed by rcraven
Bounty Started worth 50 reputation by rcraven
added 19 characters in body
Source Link
rcraven
  • 650
  • 1
  • 7
  • 17

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI (Related to Tasks) in Winter 14 Sandbox, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned:

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI in Winter 14 Sandbox, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned:

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI (Related to Tasks) in Winter 14 Sandbox, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned:

added 21 characters in body
Source Link
rcraven
  • 650
  • 1
  • 7
  • 17

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI in Winter 14 Sandbox, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned:

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned:

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI in Winter 14 Sandbox, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned:

Source Link
rcraven
  • 650
  • 1
  • 7
  • 17

Attachment trigger not firing, is this a bug?

The Attachment Trigger is not firing for before insert and after insert events when attachments are added via the UI, is this a bug? I've reviewed the known issues site and couldn't find anything similar. However, I did find others having issues with this same Trigger in the past (some reporting that the issue was resolved?). Can anyone shed some light on this?

Here is a quick example for before insert:

Apex Trigger:

trigger Attachment_Trigger on Attachment (before insert) {
    if(Trigger.isBefore)
    {
        if(Trigger.isInsert)
        {
            Attachment_BI_Add_Test.testChanges(Trigger.new);
        }
    }
}  

Apex Class:

public class Attachment_BI_Add_Test {
    
    public static void testChanges(Attachment[] newAttachments)
    {                
        for(Attachment a : newAttachments)
        { 
            a.name = 'test';
            a.Description = 'test';
        }
    } 
}

Other resources found with similar issues:

I've also checked the docs for operations that don't invoke triggers however, attachments are not mentioned: