Volunteers-for-Salesforce icon indicating copy to clipboard operation
Volunteers-for-Salesforce copied to clipboard

V4S: SharedTest failure if compound fields (like geolocation) exist on Contact

Open davidhabib opened this issue 7 years ago • 3 comments

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.

davidhabib avatar Sep 21 '17 23:09 davidhabib

**lurch: add

davidhabib avatar Sep 21 '17 23:09 davidhabib

Tracking W-020599

LurchTheButler avatar Sep 21 '17 23:09 LurchTheButler

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.

davidhabib avatar Sep 21 '17 23:09 davidhabib