Hi guys, i am quite new to flow but i have a task im trying to do....i am trying to use expression to carryout a calculation on flow....
I have a table on my list below... i want to write an expression that can calculate the closing account at the end of the day by deducting credit and adding debit from the total budget.....Also opening account should be equals to the closing account of the previous day. Any help??.....Here is the expression i could come up with
Hey @keedman4
So the when an item is created trigger sets off the flow as soon as the item is created and I guess it just returns the basic information like ID, creator, created time etc (it is like that for the CDS connector so I assume it is the same with this one). Can you try adding a get item action after the trigger and in the ID of that, select the id from the dynamic content. In the expression you will now have to update the triggerbody? with Get_Item and reference to the column value that way. Can you try this and check if you face any issues/ errors?
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
its quite basic but not complete... I want to be able to add and subtract on the same flow as well as multiply and divide in subsequent ones
Hey @keedman4
The expression looks correct to me. Can you share a screenshot of the flow where you are applying this expression? Also, what is the datatype of these columns? you might want to use the int function to first convert the data to integer and then use the subtract function.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!