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

Why is the default value for "Requested For" evaluating to the wrong user for 1 REQ/RITM record?

Todd Romansky
Tera Guru

I have a relatively simple catalog item where the "Requested For" on the REQ and associated RITM are relying on the default value in those tables (there is no option for the end user to select the Requested For).  For each of these tables, the default value is dynamic using the "Sender" dynamic filter, which corresponds to gs.getUserID();.  In almost every REQ/RITM record for this catalog item, the Requested For is appropriately recorded as the end user submitting the catalog item.  However, I have 1 record where the Requested For is not the name of the user submitting the catalog item.  In this case, the Requested For and Opened By are different users, with the person listed in the Opened By being the actual end user.  There does not seem to be any business rules setting the Requested For and from what I can tell, it is only being set based on the dynamic default value.  

Has anyone experienced this where gs.getUserID() is not evaluating to the current user?  Is there perhaps a script include or somewhere else I should be looking to see how the Requested For value is being set if it is not relying on the default value?  We are pretty much out-of-box for our Service Catalog and have not made any changes to business rules, client scripts, or UI scripts that would affect this field.

 

11 REPLIES 11

Hi Mike,

 

My apologies for not replying back in August.  We did not resolve this issue and I just noticed it happening again - this time for a very sensitive Catalog Item that is restricted to a handful of users.  In this case, the Requested For was saved as a user who does not even have access to the item.  I am hoping perhaps you have found a solution to this problem?

 

Thanks!

- Todd

adementiev
Tera Contributor

Similar case in our instance as well, with no solution. 

Here is another thread where somebody else had this problem and seems they were able to toggle a system property to resolve this, but not the case for us: Solved: Requested for has different value then Opened by - ServiceNow Community