current.variables.variable_name does not work on sn_vdr_risk_asmt_vendor_engagement table

HN1
Tera Contributor

I created a new Record Producer on sn_vdr_risk_asmt_vendor_engagement table in GRC:Vendor Risk Management
after the record created Im trying to get the variables values by simply using current.variables.variable_name but always getting this message:

com.glide.script.RhinoEcmaError: Cannot read property "name" from undefined
sys_script.2e771f3f471721106ee5afb8036d43de.script : Line(5) column(0)
2:
3: // Add your code here
4:
==> 5: gs.info('Haim- - - ' + current.variables.name);
6:
7: })(current, previous);

6 REPLIES 6

Have you tried using a glide record to the question_answer table?  That's where record producer responses are stored.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Prateek kumar
Mega Sage

For record producer it should be producer.variableName


Please mark my response as correct and helpful if it helped solved your question.
-Thanks