Harley
05/20/2020, 12:18 PMstripHTML function in Backend/Common/Format/Format.ts that is used by the cases to clear HTML from any case messages.
Normally I would tackle this with a simple SuiteScript extension that uses underscore to extend the function and replaces it with my own. However in this circumstance the code is within the SS2 SSP Application, which I've never written an extension for. I've tried a few different things - using .js files and/or .ts files, with just a basic extension that does nothing except log "test", but I keep getting errors during the extension activation process.
I've copied a couple of my extension code attempts in the thread below this message.
Any help or guidance on the creation of extensions relating to SS2 would be much appreciated!Harley
05/20/2020, 12:19 PM.js file in a SuiteScript2 folder.
define(["require", "exports", "N/Log"], function (require, exports, NLog) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function CaseStripHTML () {
NLog.debug({
title: 'Test',
details: 'Testing SS2 Extension'
})
}
exports.CaseStripHTML = CaseStripHTML;
});Harley
05/20/2020, 12:23 PM.ts file in a SuiteScript2 folder:
import * as NLog from 'N/log';
export class TestExtension {
public test(): void {
NLog.debug({
title: 'Testing',
details: 'Will this work?'
})
}
}Harley
05/21/2020, 12:37 AMPabloZ
05/21/2020, 1:02 AMSteve Goldberg
05/21/2020, 10:39 AM