Automate

 View Only
  • 1.  Chained solutions - can we "skip" a script?

    Posted 10-05-2021 03:55
    Hi everyone, hoping for an answer on this question, if we chain say 3 scripts together is there a way to "skip" the 2nd script?
    Example: script 1: create material, script 2: create valuation, script 3: create batch.. and in some cases script 2 is not required. 
    Many thanks

    ------------------------------
    Kelly Nicholson |
    Yara International Asa |
    ------------------------------


  • 2.  RE: Chained solutions - can we "skip" a script?

    Posted 10-05-2021 09:04
    Hi Kelly -

    There is no built-in setting to be able to skip a certain script. So you would have to build an IF condition within the entire mapper of the 2nd script (except don't include the log fields) so that that 2nd script will only run when it meets a certain condition. For example you could add an indicator column (if Y in column V then run script to run Valuation). 

    Thanks!

    ------------------------------
    Jennifer Hwang | SE
    Winshuttle North America
    ------------------------------



  • 3.  RE: Chained solutions - can we "skip" a script?

    Posted 10-05-2021 09:11
    Simple! Just didn't think of that! Thank you so much I will try this

    ------------------------------
    Kelly Nicholson |
    Yara International Asa |
    ------------------------------