Is it possible to use sums on fields in workflows?
Here’s the SQL query for what I am trying to get using workflows:
select sum(quantity)
,activity_seq
from SCH_OF_WORK_EST_RES_SUM
where project_id = <<project id here>>
and resource_type_db = 'PROJECT_RESOURCES'
group by activity_seq
So I would like to get the sum of the PROJECT_RESOURCES values for each particular activity sequence and then insert this value at the activity level to a certain field. Trouble is, I don’t know how to get the sum using workflows. I’m sure it’s somewhere in the documentation or examples, but I’m not sure where.
This is the entityset I’m pulling the values from currently:
${Reference_SchOfWorkEstimateResourceSummary_SetR0].ActivitySeq}
$cReference_SchOfWorkEstimateResourceSummary_SetR0].HoursQuantity}