Judgment of the Court (Fourth Chamber) of 12 September 2024.#HTB Neunte Immobilien Portfolio geschlossene Investment UG & Co. KG and Ökorenta Neue Energien Ökostabil IV geschlossene Investment GmbH & Co. KG v Müller Rechtsanwaltsgesellschaft mbH and Others.#Requests for a preliminary ruling from the Amtsgericht München.#Reference for a preliminary ruling – Protection of natural persons with regard to the processing of personal data – Regulation (EU) 2016/679 – Points (b), (c) and (f) of the first subparagraph of Article 6(1) – Lawfulness of processing – Necessity of processing for the purpose of performing a contract to which the data subject is party – Necessity of processing for the purpose of complying with a legal obligation incumbent on the controller – Necessity of processing for the purposes of the legitimate interests pursued by the controller or by a third party – Investment fund established in the form of a limited partnership offering shares for public subscription – Request of a partner seeking to obtain the contact details of other partners with indirect shareholdings in an investment fund through a trust company.#Joined Cases C-17/22 and C-18/22.