Through use of Alerts I’ve gone through and tested each line of code in a selection of JavaScript snippets, and I’ve discovered without a doubt the line that’s causing trouble. Any time the snippet attempts to connect with the Salesforce server, the following errors are thrown. Note that this issue occurs in V2, but the snippets work fine in V1. I’m assuming some small fix is required but we’re stumped!
Here’s the extended version of the errors:
The lines of code that throw this error are specific. Here are some examples:
Is anyone else having difficulty transferring JavaScript snippets from V1 to V2? Any advice would be appreciated!