You can try this:
1. Create the integer type field for the Account entity. Let's call it 'totalCallDuration'
2. Add this formula for the Account entity
Code:
totalCallDuration = (entity\sumRelated('callsPrimary', 'duration', 'held'))/60
3. Recalculate formula for all Account records.
But note that this way will not be automatically show you the changes. To see the new ' totalCallDuration ' field values you should each time make the formula recalculation for Account.
Also, you can try to automate it with:
Workflow https://www.espocrm.com/documentatio...ion/workflows/.
or
Hook (needs some code development) https://www.espocrm.com/documentatio...lopment/hooks/
It is quite easy to count duration with Report https://www.espocrm.com/documentatio...guide/reports/.
Leave a comment: