Sum value into foreach in flow designer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2019 03:55 AM
Hello.
I need to help.
I have two tables.
The first table is "Movement" and the second table is "RowMovement", the first table is referenced in the second table.
Movement has a column "total", this value is the sum of column "amount" in "RowMovement".
With flow designer I have a trigger that
- update or create "RowMovement"
- update total = 0;
- Lookup records RowMovement where movement.sys_id = RowMovement .movement.sys_id
- in foreach
- update RowMovement .Movement
- in scripts: return parseFloat(fd_data._3__foreach.item.u_amount) + parseFloat(fd_data._3__per_ogni.item.u_movement.u_total)
Now if i check it with test button it works, but at runtime it not works.
Why????
Thank you.
Labels:
2 REPLIES 2

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2019 07:47 PM
Can you please provide screen shots of your code / buttons, so we can help.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2019 08:25 AM