1

fields:"Include_in_Oppty_Rollup__c"

message:"Include: value not of required type: "

statusCode:"INVALID_TYPE_ON_FIELD_IN_RECORD"

Include_in_Oppty_Rollup__c is a checkbox on my object.

I keep getting this error when I try to use this code:

estimate.fieldsToNull.Include_in_Oppty_Rollup__c=(val) ? 'TRUE' : 'FALSE';

This should set my value for Include_in_Oppty_Rollup__c field.

Has anyone faced the same issue?

2

Probably it is throwing that error because you are using 'True' and 'False'. Those values are of type String. Remove the '' to use Boolean instead of String.

Try this: estimate.fieldsToNull.Include_in_Oppty_Rollup__c=(val) ? true : false;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.