Hello Malyl,
A common way is to use an "equivalent" flange pressure when you have to consider external loadings. This means you increase your design pressure by an additional pressure due to this loadings. The formula to determine the equivalent pressure is:
Pe = ( 16 M/ Pi G³) + ( 4 F / Pi G²) + P
M is your resulting moment and F the axial force acting ofn the flange. This formula is taken from the "Pressure Vessel Design Manual" of Dennis R. Moss, however, you can find it in many engineering handbooks under "good engineering practice".
I have a small Excel spreadsheet attached with this little formula, maybe it helps:
equivalent-flange-pressure.xls. Please check if it fits to your problem and works correctly before use
Best regards
Michael