Page tree
Skip to end of metadata
Go to start of metadata

Because Server-Side JavaScript Script Libraries have no context for which component called them, you will not be able to use this to pass the component to OpenLog. Instead, if you wish to identify which component called the code, you need to pass the component into your SSJS function as a parameter.

If you inadvertently try to pass this from a function in an SSJS SL, an error will get logged to OpenLog to warn you. However, the FBSGlobalObject object which corresponds to the Script Library has no method to identify which function is currently being run, all that will be logged is which SL is trying to pass this.

  • No labels