The episode airs Thursday, March 8 at 9 p.m. ET on NBC

Jenny from the Block Returns! See Jennifer Lopez's Upcoming Will & Grace Cameo

Jennifer Lopez is doing double duty.

The multi-talented performer will make a guest appearance on NBC’s Will & Grace revival next month when she appears as both herself and her Shades of Blue character (Det. Harlee Santos) — and PEOPLE has the behind-the-scenes first look!

Get push notifications with news, features and more.

Image zoom Chris Haston/NBC

In the episode, titled “Sweatshop Annie & the Annoying Baby Shower,” a baby shower makes Grace (Debra Messing) and Will (Eric McCormack) question their life choices. Karen (Megan Mullally) and Jack (Sean Hayes) will also make audiences laugh by finding a way to combine child labor with musical theater.

Leigh-Allyn Baker is also set to guest-star in the episode.

For more on Jennifer Lopez, pick up the latest issue of PEOPLE, on stands Friday

Image zoom

Lopez, 48, first appeared in 2004 on the original series — it ended its initial eight-season run in May 2006 — as herself on the hour-long season finale of Will & Grace, in which she sang at the Vegas wedding of Mullally’s Karen.