Hi,
Is there any possibility to show sum of related entity records in another entity field ?
eg:
Entities - Gifts & Opportunities
Fields in gifts - total gifts value
Fields in opportunities - gift amount
Simply I want to show the total sum from the opportunities gift amounts in Gifts total gifts value field.
I have created below sum related under gifts
totalGiftsValue = entity\sumRelated('opportunities', 'giftAmount');
Bu the record update as 0.
Please correct me or help me if I do anything wrongly.
Is there any possibility to show sum of related entity records in another entity field ?
eg:
Entities - Gifts & Opportunities
Fields in gifts - total gifts value
Fields in opportunities - gift amount
Simply I want to show the total sum from the opportunities gift amounts in Gifts total gifts value field.
I have created below sum related under gifts
totalGiftsValue = entity\sumRelated('opportunities', 'giftAmount');
Bu the record update as 0.
Please correct me or help me if I do anything wrongly.
Comment