george085
03/17/2021, 11:21 PMMarygolds3
03/17/2021, 11:46 PMblue
03/18/2021, 5:59 AMAku Lehtonen
03/18/2021, 12:05 PMPaul L
03/18/2021, 12:29 PMMarygolds3
03/18/2021, 2:09 PMMarygolds3
03/18/2021, 2:09 PMLuis
03/18/2021, 2:28 PMRob Cady
03/18/2021, 3:27 PMfollowing these instructions for a saved search from suite ID 76597.
7. Click Summary subtab
8. Summary Type: select Count
- Field: select Number
- Description: enter greater than 1
7. Click Summary subtab
8. Summary Type: select Count
- Field: select Number
- Description: enter greater than 1What is this number field? I don't have it in my list
Keito
03/18/2021, 3:44 PMMaxhuva
03/18/2021, 3:47 PM/**
* Script is used to find the next approver.
*
* @NApiVersion 2.x
* @NScriptType WorkflowActionScript
*/
define(['N/workflow', 'N/record', 'N/search', 'N/runtime'],
function (workflow, record, search, runtime) {
function onAction(scriptContext) {
var newRecord = scriptContext.newRecord;
log.debug('newRecord',newRecord)
log.debug({
title: 'Print Log',
details: newRecord.id + ', ' + newRecord.type + ', last printed on: ' + new Date()
})
//newRecord.setValue({
//
// fieldId: 'custbody_dyn_mf_printed',
// value: true
// });
//
newRecord.submitFields({
type: record.Type.SALES_ORDER,
id: newRecord.id,
values: {
custbody_dyn_mf_printed: true
}
});
}
return {
onAction: onAction
}
});
And a workflow action before as on entry.
But during the PDF printing I get always this error:
Error during loading transaction for advanced printing
Caused by:
com.netsuite.suitescript.exception.NLServerSideScriptException: org.mozilla.javascript.EcmaError: TypeError: Cannot find function submitFields in object standard record. (/SuiteScripts/workflow/wf_print_log.js#28)
Ahmed
03/18/2021, 4:01 PMjen
03/18/2021, 4:39 PMjen
03/18/2021, 4:40 PM?t=kauaiwPeW
onto the end of the URL which in some cases just does an Unexpected ErrorJordan Craig
03/18/2021, 4:41 PMAndrii
03/18/2021, 4:47 PMBecca A
03/18/2021, 5:11 PMJordan Craig
03/18/2021, 5:34 PMMark Needham
03/18/2021, 5:35 PMMark Needham
03/18/2021, 5:35 PMAndrii
03/18/2021, 5:50 PMEdgar Valdés
03/18/2021, 6:20 PMJ-Mack
03/18/2021, 7:55 PMtoltmanns
03/18/2021, 8:19 PMSeer
03/18/2021, 8:51 PMjen
03/18/2021, 9:34 PMjen
03/18/2021, 9:35 PMJo
03/19/2021, 4:56 AMLuis
03/19/2021, 10:23 AMLuis
03/19/2021, 11:55 AM