Here is the process in getting a filling that I was able to find for you.
Steps to a Filling
When you visit your dentist to get a filling, you will be given local anesthesia to numb the area if necessary. Next, your dentist will remove decay from the tooth, using hand instruments or a drill. Air abrasion and lasers can also be used to remove decay.
A drill, which dentists call a hand-piece, uses metal cones called burs to cut through the enamel and remove the decay. Burs come in many shapes and sizes, and your dentist will choose the ones that are right for the size and location of your decay.
At first, your dentist will use a high speed drill (the one with the familiar whining sound) to cut through the hard enamel. He or she will precisely outline the cavity with the drill, removing only enough tooth material so the filling material can be placed properly. Once the drill reaches the dentin, or second layer of the tooth, the dentist may use a lower speed drill because dentin is softer than enamel.
To clean out the decay, your dentist may use a round bur. Throughout the removal process, your dentist will test the area with the explorer to see if all the decay has been removed. A cavity-detecting dye may also be used. Dentists do not use color to judge whether all the decay has been removed. Not all cavities are discolored, and discolored enamel can be healthy.
Once all the decay is removed, your dentist will shape the space to prepare it for the filling. Different types of fillings require different shaping procedures to make sure they will stay in place. Your dentist may put in a base or a liner to protect the tooth’s pulp (where the nerves are). The base or liner can be made of composite resin, glass ionomer, zinc oxide and eugenol or another material.
Some of these materials release fluoride to protect the tooth from further decay.
If your dentist is placing a bonded filling, he or she will etch (prepare) the tooth with an acid gel before placing the filling. Etching makes tiny holes in the tooth’s enamel surface, which allows the filling material to bond tightly to the tooth. Bonded fillings can reduce sensitivity and reduce the risk of leakage or decay under the filling because the etched surface of the tooth and the filling material form a mechanical bond. Bonding is generally done with composite fillings. It can also be done with amalgam materials.
If you are getting a light-set, composite-resin filling or a resin-bonded glass ionomer filling, your dentist will stop several times to shine a bright blue light on the resin. This cures (hardens) the material and makes it strong.
Finally, after the filling is placed, your dentist will use burs to finish and polish the tooth.
There were more information on filling if you want to read about it note the link below.