Activities created via API should notify Assignees
Overview
If the GUI (https://cc.unidosnow.org/civicrm/activity?action=add) would notify assignees when an activity is created. It'd be useful for the API to do so too. The GUI respects the setting in Administer > Customize Data and Screens > Display Preferences > Notify Activity Assignees and notification rules by Activity type. It'd be useful for the API to do so too.
Example use-case
- Invoke civicrm_api3('Activity', 'create', []) or civicrm_api4('Activity', 'create', [])
- Include assignees
Current behaviour
The Activity is created but the assignees are not notified, even in situations where creating the equivalent activity via the GUI would have issued notifications.
Proposed behaviour
Notify assignees using the same rules and notification format as the GUI.
Comments
See https://civicrm.stackexchange.com/q/45078/5446 Workaround is to call CRM_Activity_BAO_Activity::sendToAssignee() separately