An election held to choose candidates for the main election is called a Primary Election.
A primary election is an election in which party members or voters select candidates for a subsequent election. Primary elections are one means by which a political party nominates candidates for the next general election.
The purpose of any primary election is to choose candidates for the main election.
choose party candidates for the general election.