Fetching details from the dictionary...

to succeed; to relieve; to replace
to take the place of; to substitute for; to take over for; to represent; to hand over (telephone)
to be exchanged; to change (places with); to switch
父に代って挨拶した。
I gave the greeting on behalf of my father.
体調不良の彼に代わって私が会議に出た。
I attended the meeting in place of him who was unwell.
怪我をした選手に代って控えが出場した。
The substitute played in place of the injured player.