We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Script include assistance

GabeF
Tera Contributor

This is the Script Include, the call breaks on the console.log statement.

It executes the prototype statement but then exits

2 REPLIES 2

Jennifer Metz
Tera Guru

Hello @GabeF,

 

Replace console.log with gs.info('PhotoshootSlotChecker Loaded');

 

When using a scoped application, server side logging requires you to use the following:

  • gs.debug() – detailed debug output

  • gs.info() – general informational logging

  • gs.warn() – warnings

  • gs.error() – errors

 

I recommend reviewing Debugging Best Practices on the developer portal. 

 

I hope this helps!

 

Jennifer Metz
Technical Lead | Infosys

Thanks Jennifer, I'd just read that in the same link.