The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Why the request for field is populated with the current login user

Alon Grod
Tera Expert

When I created a new catalog item request, the request for field of the sc_request table is populated automatically with the current login user instead of the taking the value from the request for variable. How can I make sure that this field will populate automatically with the request for variable from the catalog item. Again, Im talking about sc_request table.

20 REPLIES 20

@Alon Grod ,

 

Can you update the script as below:

 

var ritm = new GlideRecord('sc_req_item'); 
ritm.addQuery('request', current.sys_id);
ritm.query();
while (ritm.next()) {
if (!JSUtil.nil(ritm.variables.requested_for)) {
current.requested_for = ritm.variables.requested_for;
}
}

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

@Prince Arora I will try it tmrw brother and updated u

@Prince Arora now its working but after I submit the request of the catalog item im getting this Alert Error:

 

ORA-01653: unable to extend table SNOW.SYSLOG0005 by 8192 in tablespace USERS

@Prince Arora can you plesae see the error that im getting