There were lawyers in the European Middle Ages. In fact, law was one of the three doctoral-level disciplines at medieval universities (with theology and medicine).
Is there a specific function you're asking about? Criminal lawyers? Civil litigators? Administrative/notary-related tasks?