For those who have many of the wires severed, in my case, there were four yellow wires, two grey wires severed and was not sure which went where?! Sure you can spend a great deal of time perusing the 165 page wiring document for this 2001 Volvo V70 - there are at least eight separate wiring diagrams you have to wade through to get the following. If you are interested here it is in a nutshell - beats the trial and error method hands down too!
The 54-50 connector fastened to the door pillar post is a 14 pin connector - looking down the female plug-ins you have the following layout... top row from left to right is numbered 7 through 1; bottom row left to right,14 through 8.
Color code; top row: pin 7- black, pin 6-black, pin 5-yellow, pin 4-pink, pin 3-yellow, pin 2-grey, pin 1-lg. red.
bottom row; pin 14- lg. black, pin 13 and 12 empty slot, pin 11-grey, pin 10-yellow, pin 9-white, pin 8-yellow.
Pin 1 = heated rear window - Large Red wire
Pin 2 = park light, tail light, license plate lighting - Grey wire
Pin 3 = brake light - Yellow wire
Pin 4 = alarm - Pink wire
Pin 5 = anti-theft - Yellow wire
Pin 6 = license plate lighting, central lock, brake light - Black wire
Pin 7 = rear window washer wiper - Black wire
Pin 8 = rear window washer wiper - Yellow wire
Pin 9 = rear window washer wiper - White wire
pin 10 = central lock - Yellow wire
pin 11 = license plate light, central lock - Grey wire
Pin 12 = empty slot
Pin 13 = empty slot
Pin 14 = heated rear window - lg. Black wire
I have to add that the wires coming from the hatchback / door can only be resolved by removing all the hatchback panels and utilizing a volt / ohm meter to ascertain the corresponding wires to match.... have a label maker standing by to remove any future doubts - leave the labels in place for next time.... you never know if you may have to revisit. I did!