A video showing officers with the Norfolk Police Department dancing and lip-syncing to the song “Uptown Funk” by Mark Ronson and Bruno Mars has become a hit on social media.

On Facebook, it has been viewed roughly 28 million times.

According to officials with the Norfolk department, the singing competition started when the Corinth Police Department in Texas did a lip-sync video of Miley Cyrus’s song “Party in the U.S.A.” and challenged other departments, including Norfolk’s.

Cpl. William Pickering, a spokesman for the Norfolk department, told the Virginian-Pilot, “It was like, ‘All right, we know what we’ve got to do now.’ ”

The Norfolk department’s video shows more than three dozen officers in uniform, dispatchers, firefighters and other support personnel dancing and singing in office hallways and past rows of cubicles.

At one point, officers in the department’s motorcycle unit are seen dancing while cleaning their vehicles. One officer picks up another and spins him around. Some officers use orange safety cones as trumpets as they dance.

In a Facebook post, Norfolk police said, “As you can see, we all had a great time filming the video, which we have to point out was done in one take!”

Officers in the department’s public information division worked on choreographing moves and got volunteers from the police and fire departments, according to the Pilot. Officer Christopher Taveras in the police department’s special ops division resembles Bruno Mars and is the lead singer in the video, the Pilot said.

Pickering told the Pilot: “We wanted to show the community our primary objective is to protect and serve the community, but we’re not robots. We share a lot of the same interests the community has.”

They then put out a challenge to other departments.

D.C. Police also got into doing a dance challenge.

Several officers from the department performed in a recording to the popular song by Drake called “In My Feelings.”