When processing inbound email to activities, and automatically they are filed to correct case with the specified case id, how to set the value of duration for these inbound email activities? Where should I make any change to realize this setting of duration when the system files inbound email activities to case, on the programming level? I know I could key in duration if creating a new activity in the contact, but I want the system to be able to give a value for duration for every inbound email activities automatically.
1 Answer
You would need to write some code in an extension and use this hook: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_emailProcessor/
The params will contain the activity id.