You need to sign in to do that
Don't have an account?
Richard Pitfield 10
My Trigger below is failing deployment:
trigger QuoteSentTrigger on Task (After insert) {
List<Quote> QuoteToUpdate = new List<Quote>();
for(Task t : Trigger.new) {
if(t.WhatId.getSObjectType() == Quote.sObjectType &&
t.Subject.startsWith('Email:')) {
QuoteToUpdate.add(new Quote(Id = t.WhatId, Email_Quote_Sent__c = True));
}
}
update QuoteToUpdate;
}
Most of the Test Failures state that "System.SObjectException: Field Product_Type_quote_sync__c is not editable" all of these fields appear on the opportunity object, i'm failry new to development, the trigger runs in the sandbox fine any help much appreciated.
Regards
Richard
List<Quote> QuoteToUpdate = new List<Quote>();
for(Task t : Trigger.new) {
if(t.WhatId.getSObjectType() == Quote.sObjectType &&
t.Subject.startsWith('Email:')) {
QuoteToUpdate.add(new Quote(Id = t.WhatId, Email_Quote_Sent__c = True));
}
}
update QuoteToUpdate;
}
Most of the Test Failures state that "System.SObjectException: Field Product_Type_quote_sync__c is not editable" all of these fields appear on the opportunity object, i'm failry new to development, the trigger runs in the sandbox fine any help much appreciated.
Regards
Richard
The error might or might not be caused by your trigger. If you run all tests in production without deploying this code, will you also see the same error?