Does it need an AFM (Arithmos Forologikou Mitroou) tax identification number when buying property in Greece?

If you are planning to buy property in Greece, arranging an AFM should be one of the first steps to ensure that all transactions and legal formalities are carried out in accordance with Greek law.