Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Reference qual condition scripting for Flow Designer

Not applicable

Hi all, appreciate if someone could share with me how to script a reference qual condition in Flow Designer.

Background:

1. I have a Flow Designer that will create 5 variables everytime a Catalog Item is published.

2. One of the variables is "Company" and I would like to put in a filter so that only Company starting with alphabet "A" will show up in the drop down.

3. I am not sure how to do the scripting for the variable in the "Reference qual condition" field. Appreciate your help on this!

ChoongJinShen_0-1673946514464.png

ChoongJinShen_1-1673946533409.png

ChoongJinShen_2-1673946551638.png

 

ChoongJinShen_3-1673946582150.png

 



1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage

Hello @Community Alums ,

you can try this script 

var gr = new GlideRecord('core_company');
gr.addEncodedQuery('nameSTARTSWITHA');
gr.query();
return gr.getEncodedQuery();

Hope this helps 

Mark my answer correct if this helps you 

Thanks

View solution in original post

1 REPLY 1

Mohith Devatte
Tera Sage

Hello @Community Alums ,

you can try this script 

var gr = new GlideRecord('core_company');
gr.addEncodedQuery('nameSTARTSWITHA');
gr.query();
return gr.getEncodedQuery();

Hope this helps 

Mark my answer correct if this helps you 

Thanks