Get only the last activity ID