i want to set a value of requester for as a current login user in service catalog how to achive this

Akasht1
Tera Contributor

i want to set a value of requester as a current login user  in service catalog how to achieve this 

4 REPLIES 4

Basheer
Mega Sage

Hi @Akasht1 ,

You can mention the Reference Qualifier for the requester field. In that you can mention as sys_id is javascript:gs.getUserID() as shown in below image.

Basheer_0-1675005696435.png

 

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Mayu
Tera Guru
Tera Guru

We can write onload catalog client script in that We can write .

Function onload ()

{

g_form.setValue('requestor_field',g_user.getuserID());

}

Also we Also add default into reference qualifier as gs.getuserID ;

Please mark helpful or correct.

Namrata Ghorpad
Mega Sage
Mega Sage

Hello,

You can set the default value like gs.getUserID(); in the default tab for Requested for field dictionary.

There is OOB dynamic filter option Sender which is used as Dynamic default in dictionary entry of Requested for field.

 

Please mark my answer as helpful/correct if it helps you.

Regards,

Namrata

Prasad Dhumal
Mega Sage
Mega Sage

Hello Kunalb1,

You can achieve this by adding Default value to Requested For variable.

 

javascript:gs.getUserID()

 

 

PrasadDhumal_0-1675011271238.png