The CreatorCon Call for Content is officially open! Get started here.

Need help mapping a variable to the "location" field on the list view (see screen shots)

Julie Catano
Kilo Guru

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;

1 ACCEPTED SOLUTION
4 REPLIES 4

Kristen Ankeny
Kilo Sage

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.

Julie Catano
Kilo Guru

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?

So, to target the RITM's location field, you just need current.location; for the task task.location. 

Julie Catano
Kilo Guru