Configure Creating based on input given in previous task

Asmita7
Tera Expert

Hi friends,

Script inside if condition is :

answer = ifScript();
 
function ifScript() {
 
    if (current.variables.final_task == 'FINANCE') {
return 'yes';
    }
    return 'no';
}
 
But it does not work. How to fetch it and use ?
 

Please correct or suggest any other approach.

 

 

Thank you 

1 ACCEPTED SOLUTION

Also @Asmita7 ,

 

U can add one more if condition for the No path to include the 3rd scenario as well in this.

 

In that condition check if variable is HR then yes else nothing is selected then in that case simply create 2 task one after another in ur workflow.

 

Thanks,

Danish

 

 

View solution in original post

5 REPLIES 5

@Danish Bhairag2 

Thank you 

It worked.