When a roof Object is created i need the Panel orientation in Combination with the other roof designs to be updated on the Parent Object : system design.
in order i created a Formula which is used inside of my flow but after evaluating the First IF statement to true the Formula stops evaluating, anybody an idea on this?
IF(CONTAINS({!RoofDesignPanelOrientationSingle},"upright"), "upright",
IF(CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely"), "Transversely",
IF(CONTAINS( {!RoofDesignPanelOrientationSingle},"Elevated"), "Elevated",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"Upright" ),CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely" ) ), "Mixed Upright/Transversely",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"upright" ),CONTAINS( {!RoofDesignPanelOrientationSingle}, "Elevated")),"Mixed Upright/Elevated",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely" ),CONTAINS( {!RoofDesignPanelOrientationSingle}, "Elevated")), "Mixed Transversely/Elevated",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"Elevated" ),CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely"),CONTAINS( {!RoofDesignPanelOrientationSingle},"Upright")), "Mixed Upright/Transversely/Elevated",NULL)))))))
Forum Ambassador Eric Praud (Activ8 Solar Energies)
HI Lionceau,
As soon as the system finds an IF statement that returns true, it doesn't go any further in the formula.You should change the order of your IF statements:
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"Elevated" ),CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely"),CONTAINS( {!RoofDesignPanelOrientationSingle},"Upright")), "Mixed Upright/Transversely/Elevated",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely" ),CONTAINS( {!RoofDesignPanelOrientationSingle}, "Elevated")), "Mixed Transversely/Elevated",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"Upright" ),CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely" ) ), "Mixed Upright/Transversely",
IF(AND(CONTAINS( {!RoofDesignPanelOrientationSingle},"upright" ),CONTAINS( {!RoofDesignPanelOrientationSingle}, "Elevated")),"Mixed Upright/Elevated",
IF(CONTAINS({!RoofDesignPanelOrientationSingle},"upright"), "upright",
IF(CONTAINS( {!RoofDesignPanelOrientationSingle},"Transversely"), "Transversely",
IF(CONTAINS( {!RoofDesignPanelOrientationSingle},"Elevated"), "Elevated",NULL)))))))