marth141
12/20/2022, 4:51 PM/**
* @NApiVersion 2.x
* @NScriptType MapReduceScript
*/
define(['N/service'], function(service) {
function getInputData() {
// This function is not relevant for this example
}
function map(context) {
// This function is not relevant for this example
}
function reduce(context) {
// This function is not relevant for this example
}
function summarize(summary) {
// Retrieve the SOAP web services usage log
var logs = service.getRequestLog({
type: service.Type.WEB_SERVICE,
operation: service.Operation.ALL
});
// Iterate through the log entries and log their information
logs.forEach(function(log) {
log.getFields().forEach(function(field) {
log.getValue({ fieldId: field });
});
});
}
return {
getInputData: getInputData,
map: map,
reduce: reduce,
summarize: summarize
};
});
battk
12/20/2022, 4:53 PMalien4u
12/20/2022, 5:00 PMmarth141
12/20/2022, 5:00 PMStuart Anderton
12/20/2022, 7:14 PMapaule
12/20/2022, 9:06 PMbattk
12/20/2022, 9:10 PMbattk
12/20/2022, 9:10 PMbattk
12/20/2022, 9:11 PM