There's no formula in my mind. just like going to work for a major airline won't guarantee it's the last place you'll work, getting on with a coveted corporate department may or may not result in a career position.
FWIW, our senior pilot just retired after 25+ years of service. The majority of the department has more than 10 years.