Populating caller location using default value

Community Alums
Not applicable

Hi All,

I want to populate the incident caller's location on location field using the default value.
I tried with javascript:gs.getcaller_id().getRecord().getDisplayValue("location");  but it is not working.
Can you please help how can I achieve this ?

Note: Location field created on task table.

27 REPLIES 27

Yes, see below how it is working for me without any code

find_real_file.png

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi Musab,

This would be a nice approach, but I think requirement says here to populate location field that is already present on the incident form?

That might be the reason to easily create reports on the incident table, for diff KPIs.

Dot walk approach will still work, but lets say location changes for a user, then incident wouldn't reflect accurate information

Best Regards
Aman Kumar

It will reflect Aman,

See before

find_real_file.png

After I changed In user table

find_real_file.png

Please hit like and mark my response as correct if that helps
Regards,
Musab

That's what I meant, with user's location change, the information on Incident will also change.

Lets say User is in Bangalore at x date, now the user moves to California later, so now the incident location which should say Bangalore regardless of user's current  location, instead it will show California, which is incorrect.

This is what will give inaccurate date while reporting.

Hope this makes sense

Best Regards
Aman Kumar

Community Alums
Not applicable

@Musab Rasheed , I tried but it is not showing on Incident Default view