- Implement the Permit number code in the Infopath submit button
- Create one custom column name as Newnumber and set NewNumber = LoadNumber after first approval button
- Create a web service and getmaxnumber as New Number
- kindly follow the below screen shots
Please post your comments here if you have any questions or issues.