Garmaine Staff asked 1 year ago

I am constructing a media built in and due to the framing one of the interior walls of the cabinet will lay across an existing electrical outlet and will be 3-1/2 inches out from the existing wall. I was wondering what the best method would be to do this to meet code. I am considering installing a new second box (attached to the frame of the built in) outward from the first box that is flush with the existing wall, and using small extension wires and wire nuts to relocate the outlet flush with the interior of the media built in cabinet. Would this meet code? Is there a better or simpler way?