Mammogram while pregnant

Li

I am 18w pregnant and have been referred to get a mammogram. I have past issues with benign fibroadenomas and have recently developed armpit swelling and a more than usual painful breast on the same side. My doctor wants to rule out cancer. Has anyone had a mammogram While pregnant?