how to set catalog short description based on above check box fields checked in flow designer

sinu2
Tera Expert

Hi,

 

I have 2 check box fields in my catalog item 

ANd i have flow designer with only 1 task but based on above check box field selected the task short description should be set

 

" If "ABC" radio button is selected, set Task Short Description to "example1 | Requisition #(Number from Requisiton field) for (Requested For name)"
    If "DEF" radio button is selected, set Task Short Description to "example2 | Requisition #(Number from Requisiton field) for (Requested For name)" "

1 ACCEPTED SOLUTION

@sinu2 :  Yes, in script.

var x = fd_data.(get the value of variable from get Catalog variable step)

(Once you click on fd_data. you will get available options from previous step)

var short_desc= '';

if (x == true){

short_desc= "something";

}

else{

short_desc= "something";

}

return short_desc;

 

Hope it helps. Kindly mark helpful/accepted if it helps.

Regards,

Priyanka Salunke

View solution in original post

4 REPLIES 4

Priyanka_786
Tera Guru
Tera Guru

@sinu2 : In flow, you can use , "Get catalog variables" step from you which will get checkbox field and value that passed while submitting request.

then use "Create Catalog Task" step where you can set short description using script as per your ask. Toggle scripting for this short description field. In script, using fd_data variable get checkbox value from Get Catalog variables step and accordingly set short description. 

Hope it helps. Kindly mark helpful/accepted if it assists you.

Regards,

Priyanka Salunke.

@Priyanka you mean adding if condition and creating task?

cant we write code in the short desc its self like

var x = fd_data.abc; 

 

if x==true;

short_description ="something";

@sinu2 :  Yes, in script.

var x = fd_data.(get the value of variable from get Catalog variable step)

(Once you click on fd_data. you will get available options from previous step)

var short_desc= '';

if (x == true){

short_desc= "something";

}

else{

short_desc= "something";

}

return short_desc;

 

Hope it helps. Kindly mark helpful/accepted if it helps.

Regards,

Priyanka Salunke