- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 12:42 PM
I created a variable call "location of service" and when I am looking at the list view I want to be able to see the location information from this field. I currently have it mapped like this in the workflow task and still not seeing the variable information in the list view.
current.request.location.location = current.variables.location_of_service;
task.request.location.location = current.variables.location_of_service;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 08:18 AM
I found this article that resolved my issue.
Article #19 - How to show Catalog Variables on RIT... - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 01:25 PM - edited 04-11-2023 01:26 PM
Where do you want to store the location from the variable? On what record and what field? For me, task.request.location.location and current.request.location.location do not make sense. If you are setting location on the task, then I would use task.location; if on the requested item, then use current.location; but if you're trying to update the request level - first, this is questionable. Request can contain multiple requested items, so you could have conflicting information on that location from different requested items. But, if you need the location stored at the request level, you need to gliderecord query that request and do a .update on the record to update its values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 01:34 PM
I'm basically just trying to see a variable "location of service" information under the RITM and SCtask "list" view for Location. I've done it for other variables but it's not working for this field not sure why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 02:05 PM
So, to target the RITM's location field, you just need current.location; for the task task.location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 08:18 AM
I found this article that resolved my issue.
Article #19 - How to show Catalog Variables on RIT... - ServiceNow Community