This post is a duplicate to this post : How to find the id of the last added feature using pyQGIS?
The answer is the exact same one. Very sorry!
This post is a duplicate to this post : How to find the id of the last added feature using pyQGIS?
The answer is the exact same one. Very sorry!