At Engineering Workbench CheckIn, we’d like to set a custom field value for that Part in the Part table. I see some C# examples that get us close, but we are trying to use widgets for this.
I’ve tried “Fill Table by Query” in the Pre-Processing EngWorkBench.CheckIn method, but it (and the other “setters” all seem to set just the tt table, while I want to set the Part table.
At CheckIn I know the part # and if the prefix is “22G-”, I want to set the Part.PrefixType_c field to “22G-”.
I would first look at UD Column Mapping for this. You’ll probably need EcoCOPart - PartCoPart ? I haven’t used those since we were on 9.
For the BPM, I don’t think there’s a tt record for the Part in EngWorkbench. I usually use GetByID followed by an Update in these cases.
Dragos
I agree with Dragos, if you can get it to update via column mapping that would be best way. If not, it is not too difficult to do the update using the custom code widget in a preprocessing bpm. We have an example of one where we need to update the part description on a newly created part with user entry. The entry is passed via bpm call context variables. See example below.