Failures with Email Parser Action
Action Type: Attach to Record
Error: FIELD_INTEGRITY_EXCEPTION Related to ID: id value of incorrect type
This error is encountered when a custom object is set as target for the email parser action, but object is not enabled for activities. This can be resolved by updating object settings to Allow Activities.
To enable Allow Activities in Custom Object Definitions:
Classic:
- Go to Setup | Create | Objects
- Click Edit to modify an existing custom object
- Select the Allow Activities checkbox under ‘Optional Features’
- Click OK on the confirmation dialog to finalize
Lightning:
- Go to Setup | Object Manager
- Open the custom object from the list
- On the Details click Edit
- Select the Allow Activities checkbox under ‘Optional Features’
- Click OK on the confirmation dialog to finalize
- Save
For more information refer to Salesforce help article: Add a custom object to the ‘Related To’ lookup for an Event or Task