Hello,
I have an entity that tracks hours of employees for an activity. The entity has the ability to add multiple users as sometimes it involves other employees.
What I am looking for is to keep a running total of total hours for this entity type. I am not very knowledgeable on writing scripts and there isn't really an example for this in the documentation.
Essentially it looks like this.
A user creates a new record for the entity. They select the users that are involved in the activity, which has the duration calculated automatically as it's considered an event. The total duration should be added to a field within the users profile that I added as a Float number. Each time an activity is created, it takes the previous sum of hours and adds the new amount to this field.
What would be the best way to achieve this?
Thanks
I have an entity that tracks hours of employees for an activity. The entity has the ability to add multiple users as sometimes it involves other employees.
What I am looking for is to keep a running total of total hours for this entity type. I am not very knowledgeable on writing scripts and there isn't really an example for this in the documentation.
Essentially it looks like this.
A user creates a new record for the entity. They select the users that are involved in the activity, which has the duration calculated automatically as it's considered an event. The total duration should be added to a field within the users profile that I added as a Float number. Each time an activity is created, it takes the previous sum of hours and adds the new amount to this field.
What would be the best way to achieve this?
Thanks
Comment