How to auto-populate Location for Requested Items?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2013 02:28 PM
Hey Guys,
I am having a tough time figuring out how to accomplish a fairly simple but important step in our setup.
Currently we have this function working with other forms that implement a workflow, but I can't seem to figure out how to get it working with Requested Items and an associated task.
In particular, when I test and create a request through service catalog, a request is created obviously with the subsequent RITM. I'd like it so that the location field within the RITM is autofilled based on the user who made the request.
We have it working fine with tasks in other applications based through scripting in a workflow, but how can I make it so that in a RITM form, the location is populated before load, just like other fields (Requested for, Item etc)?
Screenshot attached.. does anyone have any quick tips on how to achieve this? To be more precise, I do not wish for it to populate through a Script onload or anything like that.. I'd like the location to be already filled once the RITM is loaded up, and then once you look at the task for that RITM, it too is already filled in..
Hope this makes sense and thanks for any help!
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2013 11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2013 10:32 AM
Although business rule may be more elegant as was mentioned, your post gave me a HUGE AHA! Moment.. I didn't realize that I needed to specify location through the requested option, I had done it previously though just location. Once I dot walked down and added that to the form, its doing exactly what I was looking for.
Thanks for this suggestion very much, I will put it in my back pocket as I'm sure I will come across using it in the future. +1!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2017 06:46 AM
This post is exactly what I needed. I had the same problem and the same AH HA moment as well. Fixed my problem, which was huge problem, so THANK YOU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2013 05:27 AM
A dot walking would work, although a business rule would be more elegant.
A before insert business rule (When = Before), with the condition being:
current.location == '';
And Script:
current.location = current.request.requested_for.location;
Do this rather as you will find the customer is going to be asking for similar functions across your other modules and forms.