- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2023 01:08 AM - edited ‎01-17-2023 01:11 AM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2023 01:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2023 01:13 AM
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