The documentation for the portals web API includes this JavaScript wrapper for calling the API from within a portal construct.
(function(webapi, $){ function safeAjax(ajaxOptions) { var deferredAjax = $.Deferred(); shell.getTokenDeferred().done(function (token) {
Although my portal version is well above the required version 9.2.6.41 and I believe I've set up the pre-requisites, and this code block does get entered, I always get an error "shell is not defined" from the shell line.
Does anyone know what could cause that?