I am learning AL/Business Central and wondering how to use event subscriber to add fields on Warehouse Pick and assign values to the fields from Sales Order, like sell to information and ship to information. I use flowfield and there are many fields that a value to be assigned but it uses too much resource to show a page. It takes 15 secs to show the whole page so I was wondering if there's a different way to make it.
I tried this based on a sample, which can assign a value to a field that is Enum. But it doesn't work for fields with other formats.
What do you mean that it "doesn't work for fields with other formats"?
The basic rules is that if you are assigning a field to another field, then they most both be of the same type/lengths etc.
When it comes to flowfields, then you cannot assign values directly to flowfields (these are updated based on their underlying tables). And if you need to copy a flowfield to another field, then you need to use calcfields for that the flowfield first.