Calculate total from other table list

Dan Brown2
Kilo Sage

Hi,

I was hoping for a bit of advice on the best way to achieve something.  

I have a list of records where the relevant fields are Amount (currency) and Year.

find_real_file.png

I then have another table where I want to create a record for each year, then this calculates the total for all totals for that year from the other table above.  I will create the record manually.

find_real_file.png

I have tried to create a UI Action without success - so I was wondering is something could please help?

Cheers,

Dan

1 ACCEPTED SOLUTION

suvro
Mega Sage
Mega Sage

UI Action is a good option Use GlideAggregate to get the SUM using SUM aggregate

https://developer.servicenow.com/blog.do?p=/post/glideaggregate/

 

View solution in original post

2 REPLIES 2

suvro
Mega Sage
Mega Sage

UI Action is a good option Use GlideAggregate to get the SUM using SUM aggregate

https://developer.servicenow.com/blog.do?p=/post/glideaggregate/

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you share what script did you try so far and what didn't work?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader