locked
plugin to skip one function on selection of another function RRS feed

  • Question

  • Hi ,

    I have two check boxes. one is step one and other is step two..

    I want to skip step one function if the step 2 function is checked..

    How can i actually skip a function through plugin ..

    Thanks..


    • Edited by Amy.4 Sunday, June 22, 2014 9:30 AM
    Sunday, June 22, 2014 9:30 AM

All replies

  • Hi Amy,

    I strongly believe that we cannot skip a step depending upon the conditions.

    instead separate the logic in plugin , With the switch statement.

    switch (entity)
    	{
    	    case "Account:
    		//do your logic
    		break;
    	    case "Contact:
    		//do your logic 
    		break;
    	}

    Hope this helps

    Sreeni


    Sreeni Pavalla

    Sunday, June 22, 2014 10:58 AM
  • Hi Amy,

    If you include both of your "functions" in one plugin you can just do a check to see which check-box is checked.

    If the second check-box is checked, then don't run the logic for the first "function".

    ~ Atomic Coder

    Sunday, June 22, 2014 8:56 PM