I'm trying to do something relatively mundane, which is store an offset value for Timezone on a custom field on the ContentVersion object. It seems like no matter what field I reference (including standard fields) I'm getting a 'variable does not exist' error.
public void setOffset(List<ContentVersion> contentVersions){
for(ContentVersion cv : contentVersions){
cv.Timezone_Offset_in_Hours__c=0;
}
}
I know ContentVersion is a little weird in terms of security, but I have no trouble querying these fields through the dev console query editor, and the fields even auto-prompt through the developer console interface. So it seems a bit weird to me.
Is there some quirk I'm unaware of around setting contentversion custom fields via apex?