Hi Drew,
This usually comes down to how the Lot IDs are set up in your system. In most cases, they are either created automatically through item tracking codes (using number series) or entered manually when posting. If you want to have the Lot ID ready before reporting co/by products, you might need to first trigger the item tracking lines or extend OData a bit so it can call that part of the process.
That’s what has worked for us in similar cases, but your setup might behave differently depending on the rules in place. Hopefully this gives you a starting point. If it doesn’t solve it, you can drop me a note at hardik.gupta@allgrowtech.com and we can look into your exact setup together.