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.

GlideRecord getRelatedRecords method not documented

gtke
Tera Contributor

I am trying to refer to a record in a related list via a script in a workflow. In the Script Action form I have the option to use a getRelatedRecords(String, String) method. However, this method is not documented in the wiki nor can I find any information about it online. Is this method supported? Should I use getRelatedLists() and then query the returned table instead?

9 REPLIES 9

Aaron40
Kilo Guru

I'll second this. It'd be helpful to have documentation on getRelatedRecords.


rushputin
Mega Expert

Thirded!


Mike Moody
Kilo Guru

I don't why this is not currently documented, but I did find one use of it in the CIUtils Script Include. It's in the _addParentServices function. Perhaps that might give you some hint/insight as to how it can be used.


That's actually how I found it to be frustrated by the lack of documentation about it.