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

reference qualifier issue

Madhusagar Pal1
Tera Expert

The requirement is based on the portfolio value digital product values need to show in the form.

The portfolio is dot walked from Product Group.

For example: a Portfolio belongs to “vision”, and related digital product values need to be shown to select.

Digital product and Product Group both are reference fields in the form.

MadhusagarPal1_0-1704808083000.png

 

I tried the below approach.

Create an onChange Client script on the Product Group field.

MadhusagarPal1_1-1704808083008.png

From the above client script passing product group sys_id to script include.

MadhusagarPal1_2-1704808083015.png

Tried the above script in the background script by passing hardcode sys_id to the product group, and I am getting a result.

But I used the same script I called in dictionary override it is not working.

MadhusagarPal1_3-1704808083020.png

When I click on the magnifier icon on the form, I can all the records from the base class cmdb_ci_service.

 

Thanks & regards,

6 REPLIES 6

Anil Lande
Kilo Patron

To learn more please check below link:

https://www.servicenow.com/community/developer-articles/getxmlanswer-vs-getxml/ta-p/2307589

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Anil Lande
Kilo Patron

Hi,

In order to use this SI in server side you need to make few changes to your script include.

It would be helpful if you can paste your script include part to suggest required changes.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande