I am trying to set a few custom fields (Freight Code, EDI_W6602 and SCAC) on a Sales Order based upon the Shipping Method (Shipping Item) chosen.
For example, Ship Methods A, D, F and G will have Freight Code = 10, Ship Methods B, C, E and H will have Freight Code = 20, etc.
I thought I could just add Custom Fields to the Shipping Items record (like I would to Customer record to set Sales Order fields based on the Customer chosen) but apparently Shipping Items can't have custom fields.
I thought I could create a custom record with Shipping Items as "key" with their associated Freight Code, EDI_W6602 and SCAC.
Thought maybe it could be a child to Shipping Items and allow me to map that way. Another apparent dead end.
Thought maybe I could do something like a SQL join by Shipping Method as key to "seek" Freight Code, etc. but don't see how.
Final thought was to "steal" the Shipping Item Description field and put my values in it separated by a "pipe" delimiter (i.e., 10|D|UPSG).
Then I envisioned parsing out my individual values in a SQL formula.
But, Shipping Item doesn't appear to be a Record available under Set Field Value.
Any suggestions?
Current approach (inherited from predecessor) is Workflow Actions with Hardcoded "Any of" lists of Shipping Methods and hard coded Freight Code, etc.
Major flaw is that we need to remember to modify workflows every time we create a new Shipping Method (and I can tell you some have been overlooked in the past). Plus, they are relatively confusing to read.
A link (i.e., Shipping Method to Freight Code, W6602, SCAC) like I've described seems like a very basic relational database construct.
There has to be a way to do it.