When running this code as a community user to create a case the Auto-Response email rule is being triggered
Case myCase = new Case( AccountId = company.Id, ContactId = testCommunityContact.Id, OwnerId = QueueId, RecordTypeId = GE_CASE_RECORD_ID, Subject = 'Test Subject', Description = 'Test Description' ); Database.DMLOptions dmlOpts = new Database.DMLOptions(); dmlOpts.emailHeader.triggerAutoResponseEmail = false; Database.insert(myCase, dmlOpts);
Is this expected behaviour for community users? I cannot see any mention of this behaviour - https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Database_EmailHeader.htm
I did find this current known issue - https://success.salesforce.com/issues_view?id=a1p3A000000Fmk0QAC But that is the opposite of what we are experiencing...