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.

CAD exam question

huyjor
Tera Contributor

Hello

When trying to study for the CAD exam, these mock questions sometimes gave the wrong answer. Thanks for you help. 

What syntax is used in a Record Producer script to access values from Record Producer form fields?

A. current.field_name

B. current.variable_name

C. producer.variablename

D. producer.field_name

Is that A or C ?

2 REPLIES 2

Priyanka_786
Tera Guru
Tera Guru

@huyjor It's C. -producer.variablename.  "current" points to the record which is about to get created from this record producer.

 

Kindly mark helpful/accepted if it helps.

Regards,

Priyanka Salunke

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @huyjor 

 

Its C. , current refer to the record on which you want to take action like

current.setvalue

current.getvalue

and here we are referring record producer, so the answer is C.

*************************************************************************************************************
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]

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