I've created a attribute rule to give every new feature a custom ID, the first part of the ID is 1234AB and the next part needs to be a 4 digit sequential number starting with 0001 (1234AB0001). I have a history feature I need it to reference for duplicates, so if the custom ID field in the history feature already has ID 1234AB0001 then the rule would automatically bump up 1 number and assigned 1234AB0002. Any ideas on how to accomplish this?