- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 06:48 AM
I have custom requested for field (Column name: u_request_user) on our task forms and i have created another custom field for location (Column name: u_requested_for_location).
On task forms, am trying to set the field to load, when a task is created. Can someone help with the script please.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 07:35 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 06:50 AM
You could do this with an insert business rule on the task that grabs the requested for from the request and adds it to the task along with the location.
That being said, why are you adding fields to the task rather than just showing the derived field from the request on the task form?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 06:53 AM
Hi Harish,
You can dot-walking to the reference table and pull the fields. More info here.
http://wiki.servicenow.com/index.php?title=Dot-Walking
Please let us know if you have any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 06:59 AM
Hi Guys,
Any chance if you can help with this. I have been trying to populate the 'Location' field with the Requested for location, on the Request task form with a simple BR. But for some reason, the field continues to remain blank. Location field is pulled off the task table and have the same field on my incident form as well.
The rule i have set is:
Set Location same as 'Requested For' location. Have also tried,
Table: Catalog Task
Rule: Current.location = current.variables.requested_for.location.getDisplayValue();
Have checked for any default rules which might be stopping this being populated. Any idea what I could be missing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 07:35 AM
current.location = current.variables.requested_for.location.sys_id;