Scripting inventory status

I’ve got a map/reduce script, which has been running for a while, which transforms from work order to assembly build.

 

var build = record.transform({

fromType: record.Type.WORK_ORDER,

fromId: workorder,

toType: record.Type.ASSEMBLY_BUILD

});
var built = build.save({});

 

We’re now testing the “Inventory status” feature in sandbox to see if we can use this to quarantine stock when needed. Having switched the feature on, we get an error on work order transforms “Please configure the inventory detail for the assembly item”.

I’m struggling to see what needs to be done to stop the above and I can’t find any documentation regarding scripting this feature. Has anyone else been through  this process?

Beginner Asked on January 6, 2020 in SuiteScript.
Add Comment
2 Answer(s)

Thanks – but that actually gives me a help article on “Inventory Detail Import Errors”.

From what I can see elsewhere, it seems that I need to need to set a sublist value for component > componentinventorydetail, but I can’t find any clues as to what values need setting where.

Beginner Answered on January 7, 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