Start by asking yourself how bad your behaviour really was. Be realistic and try to have a bit of perspective. If you've just been a bit stupid or annoying, you're probably okay. Also, how drunk was everyone else and what is your company culture like? These are important as they supply the context: if everyone else was almost as drunk as you and your company has a work-hard-play-hard culture, you might still get away with it. Your table dance that ended with 30 broken glasses might be forgotten by the New Year.
If in doubt, sound out a trusted colleague. They will also be a good port of call if you can't remember what it is you did and just have a black space and a nagging sense of dread where the end of the evening should be.
Next up, the apology. Richard Maun, author of Bouncing Back and How To Keep Your Job, suggests there are two appropriate levels of apology, depending on the severity of the offence. The first, for serious but not monumental mis-steps, might be a bottle of wine (or other gift) and a sincere face-to-face acknowledgement of your poor conduct: "Say something like, 'I'm sorry, I was an idiot to say that and I'd like to apologise.'"
The second level, he adds, involves writing a letter. "This lets you get your thoughts down on paper, formulate what you want to say and allows you to manage the conversation." You then hand it to the boss or colleague you offended the minute you see them. "Apologies are very hard to do and this looks like a proper gesture, provides you with a bit of theatre and makes an impact."
In terms of the content of your letter, along with the fulsome mea culpa, Maun suggests you might ask the other person to nominate a charity to which you'll donate a sum of money by way of apology. This shows sincere contrition (it's costing you something) and it also sends out the right sort of message about the kind of person you really are.
In both cases, the idea is that you draw a line under your misdeed and this allows you to move on.
If, however, they do not accept your apology, the best tactic is to apologise again and say, "I understand I overstepped the mark and you are angry — what can I do to make this right?" This, at least, puts the ball in their court — and means that they are the one who is preventing rapprochement.
In the medium term, Holloway says you should view repairing a damaged reputation rather like improving your Google search results. If there's a load of negative stuff on the first page, you want to push all that down on to page two or three. The best way to do this is to become better known for your positive achievements. If you give enough brilliant presentations, people will quickly start to forget that you were sick all over the table at the party.
In the longer term, she adds, you should absolutely not repeat the performance the following year. "As soon as the Christmas season comes round again, memories will start to flood back and people reminisce. Stories will get retold." Here, the last thing you want to do is reinforce this memory.
Of course, some incidents are never forgotten. Even this is not necessarily a disaster. A bit of notoriety can make you stand out as a character and, if you have the right kind of personality (and work in the right kind of company) you could conceivably turn this to your advantage.
However, if whatever it is you did is just cringe-inducing and embarrassing and awful — the so-called "career limiting move" — you may be better off looking for another job where you can start with a clean slate.