When S2S inserts a new record (custom object) in the target org, the relevant trigger doesn't appear to fire. The record is successfully inserted, there are no error emails received by the connection owner. It does fire when inserting a record directly in the target org.
Any ideas?
trigger MyCustomObjectTrigger on My_Custom_Object__c (after insert) {
System.debug('Whoop!');
}
System.debug('Size Trigger New = ' + Trigger.New.size());
or something along those lines. What you have now doesn't tell you if any new records were inserted. Knowing if Trigger.New was empty or not would tell you whether something had been inserted. In fact a boolean results test for being empty would be sufficient for your debug statement.