Is there any reason why this isn't working as we are getting this error message.
organizationID = organization.get("organization_id");
salesorderID = salesorder.get("salesorder_id");
resultMap = Map();
return openUrl(pdfUrl,"popup window");
Apparently this was a working script before but changed for the new API domain etc.