Invalid reference while populating cat item

Dotychczas
Mega Guru

Hello Experts,

On customer platform there is interaction record from which using UI action you can create request. This UI action transfer user to catalog item. On catalog item there is variable "requested for" which gets autopopulated and I don't know how cause this variable isn't populated anywhere in Catalog Client scripts created for this Catalog item and variable sets. 

There is an issue when on interaction requested for is set to user that has duplicate account in the system then after copying this username to Catalog Item form the error messege pops up saying "invalid reference".

How can fields on catalog item been populated other way than in catalog client scripts? I need to find out how this field is populated to fix the reference to show record with same sys_id and not with the same name.

1 ACCEPTED SOLUTION

Laszlo Balla
ServiceNow Employee
ServiceNow Employee

Hey,

 

"Requested for" is actually a variable type, since Paris, I believe, so it might be that you have a variable with this type, which will do auto-mapping for your. Here's some info about this variable type.

You could either work around this with a client script or catalog script, or simply use a look-up variable type instead.

View solution in original post

4 REPLIES 4

Basheer
Mega Sage

Hi @Dotychczas ,

Naviagate to the variable requested for in the catalog item.

Open it

Go to type specifications in the sections of the variable form

There you can see the reference specification

That is the place where you can make changes according to your requirement.

 

Please mark helpful, if this suggestion has helped you.

Please mark correct, if this solved your query.

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.

not really, In there I can provide reference. Reference on this field works fine but autopopulating does not. 

here is ss from this variable reference specyfication:

Dotychczas_0-1673260108474.png

 

Laszlo Balla
ServiceNow Employee
ServiceNow Employee

Hey,

 

"Requested for" is actually a variable type, since Paris, I believe, so it might be that you have a variable with this type, which will do auto-mapping for your. Here's some info about this variable type.

You could either work around this with a client script or catalog script, or simply use a look-up variable type instead.

Thank you Laszlo, you are absolutely right. I'll change field to reference one.