The retrieve action is used to get data from the database. For more details, I would suggest to take a look on the Academy section to learn the different components of the Mendix Platform.
Do you have a specific question about the retrieve?