The CC cable part numbers are different for each model:
535i: 65711370164
M5: 65711386119
528e: 65711371394 (realoem shows ended for the eta)
Here are the old cables before

I took my servo off the M5 to make it easier to manuver and for pictures, you may not have to remove it.
Push plastic tab down with a screwdriver and gently pull cable end out.


Once the metal clip is exposed slide out the end of the old cable and slide in the new cable end.



Push and lock in the new cable to servo.

The rest of the steps are covered well here as they are the same as the throttle cable replacement. This is a well descriptive thread on the rest of the steps. http://www.mye28.com/viewtopic.php?f=5&t=93396