Hi Aditya,
I would recommend to add a Aggregate List activity before the Change activity, in which you count the amount of records in BreakdownList. Then you can simply do 'BreakdownListCount + 1' in the change activity.
Hi Akshat,
make sure you are passing list into aggregate activity not the variable
Hi this is what I am doing
Hi Aditya,
I think the expression you have is in wrong syntax, please check the below docs to get an idea of using if statements in decisions
It should look something like this:
You can retrieve the existing Breakdown records sorted by BreakdownID in descending order
If you limit to 1 record, you will have the Breakdown record with the highest BreakdownID value. If you want to eg set the BreakdownID for a new record, you can then refer to $Breakdown/BreakdownID +1
You can also retrieve the entire list and use the aggregation 'maximum' to get the highest value and use that in the rest of your logic.