[2][3][4][5][6] He previously served as the Acting Solicitor General of Sri Lanka from October 2019 up until May 2021.
[10] He joined the Attorney General's Department in April 1988 as a State Counsel.
He was later promoted as Senior State Counsel, and then Deputy Solicitor General.
[10] In October 2019, he replaced Dilrukshi Dias Wickramasinghe as the acting solicitor general following the latter's leaked controversial phone call with Avant Garde chairman.
[12][13] On 20 May 2021, the Parliamentary Council approved the appointment of Sanjay Rajaratnam to the position of Attorney General of Sri Lanka replacing Dappula de Livera.