How to send the "name" instead of the "Sys Id" of the catalog offer?

Guilherme Cai_a
Tera Contributor

Good afternoon people!

I have a question, I'm trying to send information through an integration.
The information is in the sc_req_item table, and I need to send the field "Item(cat_item)".

 

GuilhermeCai_a_0-1664822345054.png

 

 

However, when sending, the Sys ID arrives, I would like the name to be sent, how should I do it?

 

In my Script Include code I did this:

 

obj.item = registro.getValue('cat_item'); 

Thanks!

 

1 ACCEPTED SOLUTION

Harshad Wagh
Tera Guru

try this

 registro.getDisplayValue('cat_item'); 

View solution in original post

4 REPLIES 4

Harshad Wagh
Tera Guru

try this

 registro.getDisplayValue('cat_item'); 

It works!

Thank you my friend!

You are welcome!!!

eumak
Tera Guru

Hello @Guilherme Cai_a ,
As @Harshad Wagh  suggested the method "getDisplayValue('name')", You can utilise it, but it is strongly advised to use the onChange client script with the GlideAjax method in order to obtain the display value.

Mark it as helpful or correct, If Applicable

 

Cheers..!
Happy Learning:)
Tushar

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar