 However, she returned to guest-star in the final episode of the series.Kaling and her fellow writers and producers of "The Office" were nominated five consecutive times for the Primetime Emmy Award for Outstanding Comedy Series.In 2010, she received a nomination for Outstanding Writing in a Comedy Series with Daniels for the episode "Niagara."