Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2023 09:51 PM
update as this
var gr = new GlideRecord('sn_hr_core_profile');
gr.addQuery('user',vaInputs.user.sys_id);
gr.query();
if(gr.next()) {
var location = gr.country_of_birth.getDisplayValue();
vaVars.location = location;
}
})()
then in decision use the exact country name to match in IF
if(vaVars.location=='United States of America'){
return true;
}
else{
return false;
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader