And Mullally reposted Lopez's selfie on her personal account, remarking on Jenny from the Block's flawlessness.
REUTERS/Mario AnzuoniSinger Jennifer Lopez arrives at the 59th Annual Grammy Awards in Los Angeles, California, U.S., February 12, 2017.
In fact, the singer-actress will be playing both herself and her cop character in the episode-though no plot details have been revealed just yet.
Black Widow standalone movie finds writer in Jac Schaeffer
Schaeffer is best known for writing the recent short Olaf's Frozen Adventure , and the 2009 sci-fi romance TiMER which she also directed.
This isn't the first time J.Lo has appeared on the long-running sitcom-she showed up three times in the original run. Molly Shannon returns this week as Grace's neighbor Val Bassett.
She sang at Karen's wedding 14 years ago.
According to Vanity Fair, the 48-year-old superstar is once again making a guest appearance in the romantic comedy. She'll portray herself as well as Det. Jennifer Lopez is set to guest-star in an upcoming episode of Will & Grace in two separate roles: She'll play herself and Harlee Santos, the NYPD detective she plays on NBC's Shades of Blue. It would be interesting to see Her reaction on hearing about Rosario's demise.
Will & Grace airs Thursdays at 9 p.m. on NBC, while Shades of Blue returns for its third season.