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

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