I am trying to write from a configurator a value into the JobHead.UserChar01 field, the syntax says its correct but when i use orderjobwizard from a sales order, the value does not write to the UserChar01 field. (boxes are being ticked to say create job, get details etc)
do i need to write this at quote / order stage and then have a BPM to copy this value over or should it just work as one would expect!
cant test via MRP at the moment because MRP is stuck - ticket in with Epicor about this.
Can you share the code in your document rule? This can fail sometimes if you’re execution rule has the wrong context, or the context is set incorrectly in the script.
JobHead.PartDescription bit writes fine, HOWEVER, i am not sure if this is because its pulling from the order or if its using the configurator value… may need to test this theory further to see whats actually happening.
not always sometimes its configured at order entry - depends on if we are quoting a customer or if its repeat business and a customer placing a new order of possibly similar products
The JobHead context executes at the time the job is created, and it should be able to read the configurator values regardless of whether it was from a quote or from an order. It certainly can read them in the Method Rules, although those do actually compile when the configurator is saved, even though the job doesn’t exist yet.
Are you changing the PartNum or RevisionNum at all via configurator? I’m wondering if there’s some disconnect happening between the job and the configurator.
Change the JobHead.UserChar1 in document rules to a static string. Something like “UserChar1 Test”. Then approve the configurator and configure a Quote, convert to order, and create the job. Check if that static string populates in JobHead.UserChar1
If it does accept the static string, as a workaround you can create a document variable and set it in the OrderDtl / QuoteDtl context, then set your UserChar to the Doc Variable in JobHead:
You can configure a part in a job (as long as it’s not a sales kit) by adding the configured part and then selecting “Get details…”. This will trigger the configurator for that part. The location of the “Get details…” menu item will depend on what version you’re running. It’s in the overflow (vertical dots) menu in Kinetic or under “Actions” in Classic.
Thanks @kve for offering great advice. This gave me an idea how to fix a different issue I’m having.