How can I insert inventory detalis to Assembly build?
Hello,
I have a process that takes CSV file, convert them to JSON and then I need to insert the values to inventory details in Assembly build.
example of 1 line of JSON:
{“assembly”:”45″,”lotnumber”:”2021 109 M 21 – 1″,”Expiry date”:”12/05/2023″,”quantity”:”682″} |
as you can see I need to insert the lot number, date and quantity .
my code:
I am getting ERROR that’s says “Field inventorydetail is not a subrecord field.”,”stack”:
any idea how can I make this work?
Use Record.selectLine to select the line you want to update.
select line of what? i dont get it…
You are using dynamic mode, you need to have an understanding of how the record works in the ui to successfully use dynamic mode. Specifically for sublists, you need to select the line you want to update, update the values in the columns you want, and then commit the line.
Your code does not select any line, which means you are working with the new line. Your code then tries to get the inventory detail. That will fail since the new line has no item and thus no inventory detail.