Support For multiple cases while creating email activity
Overview
CiviCRM has functionality to allow you to create email activities and to optionally attach it to one case as well.
Currently the email activity creation form only accepts one case id unlike contact id parameter which can accept multiple comma separated ids.
This makes it impossible to attach the same email activity to multiple cases.
Note: I am not sure if there is any particular reason that this form does not support multiple cases as the print merge document does support multiple case ids.
Problem statement
Currently it is impossible to attach one email activity to multiple cases.
Example use-case
- Go to email activity creation form with valid contact ids in parameter and multiple valid case ids separated by comma.
- Fill the form and Proceed to submit.
Current behaviour
The submitted form results in an error.
Proposed behaviour
The caseid parameter can be renamed to caseids so that it can accept multiple case ids separated by comma similar to cid parameter and the created activity can be attached with all the providid cases.