Hi all.
Thanks in advance for your support.
I'm not sure whether this would be possible, but certainly it would help a lot. I want to sum the values in a table field (CDS), similar to the SQL instruction "Select SUM(field_name) as total_amount from <table_name>" (returning the total amount in the <total_amount> field).
I tried something like this using the LIST RECORDS action, but it didn't work (see image). Does anyone know a way to do that??

This is the error received:
Term 'sum(clth_gross_billable_value) as valor_tributavel_total, sum(clth_invoice_item_value) as valor_faturavel_total' is not valid in a $select or $expand expression.
(PS: The solution of (1) initializing a float variable and (2) adding the values to the variable within a for_each action is what I am doing right now, and it works... if it was possible to do what I wanted, it would be much better tough.)
Thank you very much.
Best regards.