I have a requirement where I need to create sequential codes with department (based on user selection) in a list .The user will click "Add item" from the dashboard and codes will be created and added in the list in a sequential manner .
Example :
1st time :
New code : 6759_00000
2nd time : 6759_00001
Similarly starts from 00000 for a different department
I am able to get the 1st item in my list but the iteration does not happen.
How can I go about with this?