Output printing as [object object]

praaaaaaaa
Kilo Contributor

How can i see the output of object variable in log. I tried to print the value of object variable but it is printing as [object object] see the screen shot below. How can i see the value?

find_real_file.png

8 REPLIES 8

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can log an object's output using JSUtils.



JSUtil.logObject(objectVariable);


Kyle
Giga Contributor

What's the solution when using a scoped application?

Xplore is simply the best tool for viewing object in and out of scope.

It can view objects that are not globally scoped.

ServiceNow Share


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022