Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

In the catalog variable there is variable name - user (*sys_user) and on the selection Cost Center

jaiho_rai
Kilo Sage

In catalog variable I have two variable 1: User 2- Cost Center

 

If I select the user auto populate the cost center.

I have used in the dictionary the variable "Auto Populate", it working in native on admin

if there if same thing I am checking in the portal it's not populating 

 

I tried to change the variable type from string to reference to (cmn_cost_Center) but that was not working .

I tried script, getReference via call back it was not working .

10 REPLIES 10

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @jaiho_rai 

 

Could you please share the snippet of Auto populate so that we can check.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

jaiho_rai_0-1712242395043.png

Hi Please find the above snippet for autopopulate the cost center value.

@Dr Atul G- LNG 

 

Hi @jaiho_rai 

 

AGLearnNGrow_0-1712242997717.pngAGLearnNGrow_1-1712243022094.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

I utilized the same but doenst work , As user do not have access to particular table due that it not able to populate .

 

It is good use the client_ajax