I have an application that dynamically handles CRUD operations for Salesforce data. For foreign key values on an object, I read the first three letters of the ID to determine the object type being referenced (as asked here).
For the WhatId on an Event, this solution works great, however, the WhoId on an Event seem to be an anomaly. Based on the ID associated with the WhoId, the first three letters indicate that it is either a Contact or Lead, so naturally my dynamic application will send them to the Contact or Lead screen. However, the Salesforce website sends them straight to the member screen.
- How is this association made?
- How should I handle this?
Note: I thought maybe the PersonContactId field on an Account may be of interest, but I'm not sure.
Rest API v 31.0