6

Field History tracking objects, such as "AccountHistory", "ContactHistory", etc., keep track of changes to field values on records of objects with History tracking enabled on those fields. The original and updated values are stored in the "OldValue" and "NewValue" fields, respectively, both of which have a Schema.DisplayType of ANYTYPE (see the list of possible Schema.DisplayType Enum values).

My question is, are Field History tracking objects the ONLY place in Salesforce that you'll encounter fields of DisplayType "ANYTYPE", or are there other places as well?

  • That's a peculiar question, wonder why you need that info :) No idea to be honest but I'd check "mutant lookups" (like Activities can be linked to many objects) and maybe Task.Subject that's a freetext but you can select from "picklist". – eyescream May 10 '13 at 20:35
6

I think I found my answer --- according to the docs on Salesforce Primitive Data Types:

AnyType is used within the Force.com platform database exclusively for sObject fields in field history tracking tables.

|improve this answer|||||
  • Looks like an answer to me :) this is certainly a dark corner of the platform you have shed some light on – Daniel Blackhall May 11 '13 at 13:13

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.