What to do, when facing the metadata deployment errors of:
- Page Layout: Invalid field:TASK.SUBJECT in related list:RelatedActivityList
- Page Layout: Invalid field:NAME in related list:RelatedEmailMessagePeopleList
- Permission Set: Unknown user permission: EditEvent
- Permission Set: Unknown user permission: EditTask
- Activity Custom Object: searchResultsFields TASK.SUBJECT not found
I faced these errors for my CI/CD deployment user, which I had changed Profile = Minimum Access - API Only Integrations and User License = Salesforce Integration
I found that the user was missing the System Permission = Access Activities, and when granting this via a permission set, then the errors were resolved.
I hope others can use this finding in the future, because the errors were not really documented anywhere.
Gracias por compartir esta solución. Tenía el mismo error con el mismo perfil de usuario y tipo de licencia Salesforce Integration. Me faltaba efectivamente el Check en Access Activities en el permission set.