Cook the potatoes and carrots. For that, before you are going to have to cut them into small cubes, you must boil them in separate containers.
On the other hand, put the gelatin in a container with 4 tablespoons of water and heat it in a bain-marie until it is completely dissolved.
Once the jelly is ready, you can cover different ramekins (or a square-shaped dessert mold) with plastic wrap or parchment paper. Place the ham on top of the paper, completely covering the walls and the base of the mold. When the ham has been put on, do the same with the cheese.
For the filling of this dish, put the cooked potatoes and carrots in a bowl, also add the peas, mayonnaise, salt, pepper, and gelatin. Stir a bit to distribute the ingredients.
Pour the mixture over the mold previously covered with the ham, then cover the top with more ham, cheese, and cold cuts.
Finally, put the (or the) containers with the salad in the refrigerator and wait until it is ready to serve.