Volunteers-for-Salesforce
Volunteers-for-Salesforce copied to clipboard
V4S: SharedTest failure if compound fields (like geolocation) exist on Contact
VOL_SharedCode_TEST.CodeCoverageTests() calls VOL_SharedCode.LoadAndCopyObject(c.Id, c2) which will try to copy all fields on contact. Unfortunately, the compound fields are not supported in VOL_SharedCodeAPI25.LoadAndCopyObject() due to needing to stay at API 25. we explicitly remove the compound address fields but don't know about other custom compound fields (eg, user adds a geolocation field to contact).
not sure if our code can be made more intelligent to ignore compound fields, or whether our test must use a known subset of contact fields that are safe.
**lurch: add
Tracking W-020599
I think our code can check each field in the provided list of fields to copy, and just ignore the ones that don't have describe info under our API version.