<P> In the series pilot, Michael is overtly rude to Pam and at one point fakes her firing, leaving her in tears . He often makes suggestive if harmless remarks about her beauty and general appearance, and at one point lies to the camera that they used to date (inspiring a horrified "WHAT???" from Pam when an interviewer relays the message to her). However, his impulsive attempt to kiss her during Diwali is shot down and marked the end of any romantic dreams for Michael with Pam . Over time, the combination of Michael being supportive of her goals, her transition from a bad relationship with Roy to a great one with Jim as well as her finding a job she not only enjoys but is effective at in the office administrator position and Michael finding his own soulmate in Holly Flax made Pam soften her stance towards Michael, and the experience at the Michael Scott Paper Company further bonded them (as did Michael's decision to choose Pam instead of Ryan Howard as the only MSPC salesman to keep that job when Michael returned as Branch Manager). Pam was furious at Michael for dating her mom Helene, and excoriated him at length during "The Lover" before eventually slapping him in "Double Date", but they once again were able to be civil to each other afterward . Pam does set up boundaries around her personal life that Michael can't cross, like telling him that he wasn't Cece's godfather . By Season 7, Pam acts as something of a guardian angel for Michael, steering him away from (numerous) bad ideas and towards his (fewer but real) good ones, such as his successful efforts to propose to Holly . In Michael's finale "Goodbye, Michael", Pam spends the whole day looking for a shredder, believing that the next day Michael was leaving . As Michael takes off his microphone and heads down the airport concourse, Pam runs to him with no shoes and hugs him as he kisses her cheek . The two have a nice moment and he walks off, leaving her holding her shoes . She then tells the camera that he was happy, wanting to be an advanced rewards member, and was glad to be going home to see Holly . She then is there to watch Michael's plane take off . In a deleted scene from "The Inner Circle", we learn Pam is flattered that Michael named his new puppy "Pamela Beagsley", and in "The List" she playfully teases Jim by calling their second child "Little Michael Scott", further proving that the two have developed a genuine friendship . </P> <P> Toby, the Human Resources Representative for Dunder Mifflin in the Scranton branch, has a secret crush on Pam . In "A Benihana Christmas" she gives him her Dunder - Mifflin bathrobe, a display of friendly affection, after he spent the day feeling bad that Dwight took his . In "Night Out", Toby awkwardly rubs her knee while they share a laugh (and while Jim sits just on her other side), and the rest of the office watches in horror . In his mortification, Toby immediately announces that he is moving to Costa Rica before jumping over the locked gate and fleeing . In "Goodbye, Toby", he purchases a DSLR camera just to get a picture with Pam . On the eve of his departure, she confesses to the cameras that she always thought he was "kind of cute". The crush receives less attention after Toby's return . However, in "Niagara", Pam and Jim are late for their wedding and he is visibly excited at the prospect that the wedding might not happen . In "Finale", Pam and Toby dance with each other at Dwight's wedding, with Toby beginning to cry as Pam comforts him . When she asks, "is it me?", he replies that "it's everything!". </P> <P> Pam Halpert has appeared in every episode with the exceptions of "Business Ethics" (except for the deleted scenes), "St. Patrick's Day", and "New Leads" in which only her voice is heard, and several season 8 episodes from "Mrs. California" to "Pool Party", where she did not appear at all as Fischer was on maternity leave . </P>

What episode of the office does pam and roy break up