- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 10:52 PM
I have a flow designer that has a trigger "Service Catalog". I get the following error when I try to activate the flow.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:34 PM
use this
var reqForLocation = fd_data.trigger.request_item.variables.requested_for.location.u_id;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:12 PM
Can I use it on Flow Designer ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:18 PM
whose location you are trying to get?
You should use Get Catalog Variables Action and then it would be easier for you
if you don't wish to use then update as this
I assume requested_for is reference variable to sys_user and location table has u_id field in it
var sysId = fd_data.trigger.current.sys_id;
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id', sysId);
gr.query();
if(gr.next()){
var reqForLocation = gr.variables.requested_for.location.u_id;
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:28 PM
Same Error:-
attempting to use undefined input = 'current' from Investigate Hold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2022 11:34 PM
use this
var reqForLocation = fd_data.trigger.request_item.variables.requested_for.location.u_id;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader