how Auto populate 'location' in RITM and SCTASK

Tharun15
Tera Contributor
i have Location field in RITM and SCTASK. how to auto populate this field with the location value of ‘Requested for’. 
Thnaks, 
Kumar
6 REPLIES 6

Gowrisankar Sat
Tera Guru

Hi Kumar,

 

The best way to auto populate is to create a catalog client script, check applies on requested items/catalog tasks

Make use of GlideAjax(Best Practise) to query the user location

Set the response into the location field.

 

You can still skip glideajax and make use of gliderecord in catalog client script.

Thnaks Sankar,

please provide code for that.

 

Thnaks

Kumar 

You need a business rule with script in RITM

current.location = current.request.requested_for.location;

 

You need a business rule with script in sc_task

current.location = current.request.requested_for.location;


Please mark this response as correct or helpful if it assisted you with your question.

Thamks for Reply 

Hi Sanji,

I think it's not working 

Please proved detail. 

 

Thanks

Kumar