How to retrieve form variable value via script in flow designer

Shivam32
Tera Contributor

I have a requirement to set the dropdown field value on the case based on the variable value select on the form via flow designer
Variable on the form is of multiplechoice type:


eg: if user selects 1st option from the form the  field value on the case will be set as allowed. Office type field is a choice type field. If the user selects 2nd option then office type field value will be set as review pending.

 

1 ACCEPTED SOLUTION

@Shivam32 

you can use inline f(x) script and use if else and determine the value

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Viraj Hudlikar
Tera Sage

Hello @Shivam32 

 

What have you tried from your end? I believe by using get catalog variable you can easily check what value is selected by user while submitting request and using if condition you can select value of drop down you need by updating case record you desired.

 

If you have designed flow and its not working share some screenshot if possible, we are here to guide, you.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

V V Satyanaraya
Tera Contributor

Hi @Shivam32 ;

 

you can you if and else conditions for the above one in flow desinger,

if Multiple Choice Variable contains First Option

update record with set allowed 

else Multiple Choice Variable contains second Option

update record with review pending

 

 

Sujatha V M
Kilo Patron
Kilo Patron

@Shivam32

 

- Is that case record created based on the variable value on the catalog form? 

- Is that case record needs to be updated based on the value selected? If so, is there any reference holder between the records? 

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Ankur Bawiskar
Tera Patron
Tera Patron

@Shivam32 

you can use flow variable and determine the choice value and then use that flow variable while setting the field value

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader