Dmitry Masanov
04/26/2021, 11:44 AMDmitry Masanov
04/26/2021, 12:01 PMbattk
04/26/2021, 1:41 PMDmitry Masanov
04/26/2021, 1:42 PMimport currentRecord = require('N/currentRecord');
battk
04/26/2021, 1:43 PMbattk
04/26/2021, 1:43 PMDmitry Masanov
04/26/2021, 1:45 PMDmitry Masanov
04/26/2021, 1:49 PM/**
* @NApiVersion 2.1
* @NScriptType ClientScript
* @NModuleScope SameAccount
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "N/currentRecord"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addContact = void 0;
const currentRecord = require("N/currentRecord");
function addContact() {
console.log(JSON.stringify(currentRecord));
}
exports.addContact = addContact;
});
Dmitry Masanov
04/26/2021, 1:50 PMDmitry Masanov
04/26/2021, 1:50 PMbattk
04/26/2021, 1:51 PMbattk
04/26/2021, 1:51 PMDmitry Masanov
04/26/2021, 2:53 PMDmitry Masanov
04/26/2021, 2:53 PM/**
* @NApiVersion 2.1
* @NScriptType ClientScript
* @NModuleScope SameAccount
*/
define(["require", "exports", "N/currentRecord"], function (require, exports, currentRecord) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pageInit = exports.addContact = void 0;
function addContact() {
console.log(JSON.stringify(currentRecord));
}
exports.addContact = addContact;
function pageInit(context) {
if (context) { }
}
exports.pageInit = pageInit;
});
Dmitry Masanov
04/26/2021, 2:54 PMDmitry Masanov
04/26/2021, 2:54 PM/**
* @NApiVersion 2.0
* @NScriptType ClientScript
* @NModuleScope SameAccount
*/
define(["require", "exports", "N/currentRecord"], function (require, exports, currentRecord) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pageInit = exports.addContact = void 0;
function addContact() {
console.log(JSON.stringify(currentRecord));
}
exports.addContact = addContact;
function pageInit(context) {
if (context) { }
}
exports.pageInit = pageInit;
});
Dmitry Masanov
04/26/2021, 2:54 PMbattk
04/26/2021, 2:58 PMbattk
04/26/2021, 2:59 PMDmitry Masanov
04/26/2021, 2:59 PM