Advance Reference Qualifier to return Description of a Knowledge Base

chatsaurav19
Tera Contributor

Hi All,

 

What should be the correct script to return the description of a knowledge base using ARQ?

 

Example : If I am selecting a KB as shown then the current description should automatically pull up the description

 

chatsaurav19_0-1699352635737.png

I have tried achieving it like this for current description field but it isn't working:::

 

javascript: 'description=' + current.variables.knowledge_base_kbdmr.description 

 

( knowledge_base_kbdmr is the variable name for "Knowledge Base" variable )

 

Can someone please help?

 

Regards

Saurabh

 

 

8 REPLIES 8

Hi @Anil ... Agreed so then what should be the exact syntax to get the 'Description' for the selected 'Knowledge Base'?

 

Regards,

Saurabh

Check the solution on below link.

https://www.servicenow.com/community/developer-articles/auto-populate-reference-data-in-service-cata...

 

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

Hi @Anil ... Thanks for your help! I actually used a GlideAjax to achieve this requirement and it is working as expected.

 

Regards,

Saurabh

MrGupta__
Tera Expert

Hi @chatsaurav19,

If you are using Vancouver will suggest you, use the auto-populate feature by service-now like this:

MrGupta___0-1699359029474.png

If you are not using Vancouver release, then call a client callable script include as default value.
Make sure the field type is "multi line text" or "Single line text".

Thanks & Regards