<P> In "Spooked", Dwight and Robert California's son Bert hearken back to the days when Toby was continuously mistreated by Michael when they "prank" Toby by telling him he's fired . Toby finds Bert's treatment of him hurtful--especially Bert saying he can have Toby fired because he's the CEO's kid--and Dwight finds the whole bit hilarious . </P> <P> In "Test the Store", Toby has a rare substantial role in a Season 8 episode, where he leads a self - defense lecture for the employees after they believe Andy was attacked by a gang and left with a black eye (Toby and everyone else later find out Andy was punched by a rude 4th - grade girl when he defended Pam from a barrage of tossed pine cones). When Toby isn't aggressive enough for Kelly Kapoor's taste, she stands up and begins threatening and swinging at him, after which Andy defends Toby and gets punched in his other eye . </P> <P> In "New Guys", Andy returns from Outward Bound manager training, making him become more "decisive and confident". When Andy tells Toby that he plans to fabricate an excuse to fire Nellie, Toby shoots down the idea as a violation of corporate policy, prompting Andy to tell Toby "I understand why Michael didn't like you ." When Andy hosts a motivational exercise involving a tightrope, he insults Toby and Nellie in front of the staff . Since that time, Andy has been rude towards Toby in a manner that echoes Michael Scott's hatred of his harmless HR rep, though Toby seems much less affected by Andy's behavior than he was by Michael's . When Andy went off on his long boat trip, Toby's time in the last season was devoted to his unrequited romantic interest in Nellie Bertram and his belief that he'd convicted an innocent man during his jury time on the Scranton Strangler case (a theory he put to rest when he went to visit the convict in prison and was, in fact, strangled and nearly killed by him). In the series finale, it's revealed that Toby was fired immediately after Dwight fired Kevin Malone (it's likely that the Corporate office fired Toby and Dwight simply had the burden of telling him) and Toby then moved to New York where he's trying to become a novelist and has six roommates . Toby surprises his former co-workers at the reunion panel when he says that his life feels meaningless now that he's not being filmed for the documentary anymore . He breaks down in tears while dancing with Pam at Dwight and Angela's wedding, saying of what's bad in his life that "It's everything!", but he seems cheered a little when the group insists he join them for post-wedding festivities . In a photo gallery NBC released of "where are they now?" info - bits for the characters, it's revealed that Toby has returned to his destiny by taking on an HR position at a TJ Maxx store . </P>

What happens to toby at the end of the office
find me the text answering this question