Follow following steps to get count of records using List records control
Note: User can change filter condition to meet requirement otherwise flow will become less performance if retrieve all the work order records
Use Length function on lookup records body values then add 1 to get next number
“add(length(body('Get_Last_Work_Order_Number')?['value']),1)”
How to automate IoT Alert to work order will be posted in next blog post

