Allocate Revenue Arrangement Page

We have to schedule 11000 records, the screen enable us to mark only  200 records in each run. How can we either expend this selection or schedule allocation of revenue arrangement?

Add Comment
1 Answer(s)

NetSuite normally performs the allocation automatically, so processing 11,000 records is outside the standard and normal process. Not helpful, I know.

Allocation can be run by a script, so you could create a scheduled script/ MapReduce / Workflow Action script to perform the allocation automatically.  I’ve done that a few times for customers who had some interesting allocation procedures.

Here’s the basic workflow action script version:

/**
* @NScriptType WorkflowActionScript
* @NApiVersion 2.0
*/
define(["require", "exports", "N/log", "N/action"], function (require, exports, log, action) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.onAction = function (ctx) {
var result = action.execute({ recordType: 'revenuearrangement', id: 'allocate', params: { recordId: ctx.newRecord.id } });
log.audit('Revenue Arrangement Reallocated', "{result: " + JSON.stringify(result) + "}");
};
});
Beginner Answered on May 26, 2020.

Thank you !

on May 27, 2020.

You’re welcome. I noticed an error in the script, so I just fixed it.

on May 27, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor