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.

Assessable Record and Assessment Instance

grahamyoungs
Tera Contributor

I am trying to use the "default answer from script" method on an assessment metric to automatically fill the value of the resulting assessment instance questions from a field in the corresponding assessable record.

Is there a way to dot walk in the script back to the assessable record to pick out the data?

Specifically, the assessable records are GRC Entity Types. I am trying to fill the value of a string metric with the Name of each corresponding Entity Type.

1 ACCEPTED SOLUTION

Sebas Di Loreto
Kilo Sage

@grahamyoungs 

Without getting too much into it, I think you are running into those cases where you have a "document_id" field that you cannot dot walk since it is just a sys_id. If that is the case, you will have to glide the right table for your "document_id" table on your script to get the information you want.


If I helped you with your case, please click the Thumb Icon and mark as Correct.


View solution in original post

1 REPLY 1

Sebas Di Loreto
Kilo Sage

@grahamyoungs 

Without getting too much into it, I think you are running into those cases where you have a "document_id" field that you cannot dot walk since it is just a sys_id. If that is the case, you will have to glide the right table for your "document_id" table on your script to get the information you want.


If I helped you with your case, please click the Thumb Icon and mark as Correct.