Skip to main content
I am Working for a solar Company and we need to create Systemdesigns in Ordner for Multiple roof designs to nest in as child objects.

 

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)))))))
12 risposte
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    17 giu 2021, 10:07
    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)))))))