Forcing Part Description to Upper Case - Where to do that?

,

I have been requested to have the part description to be forced to upper case when the user saves data. I have created a BPM under Part.Update which does the upper case conversion. My problem is that if I make it a Pre-Processing BPM it changes to upper case when saved but it converts the previous description, not the new one. If I put it in post-processing, it appears to convert properly but it isn’t saved.

What is the proper way to do this?

At some point I will need to force the PartNum to uppercase when a new part is added, but that one seems trickier. Haven’t found a place in the BPM world where it works.

Normally in PreProcessing you will have two records to deal with, one is the ‘before/unchanged’ and one is the ‘new/updated’. You will want to make sure you are grabbing the description from the updated record. If you are doing this in code, something like this:

var partDescription = ttPart.FirstOrDefault(part => part.RowMod != "")?.PartDescription;

1 Like

I would do this as a Data Directive.

2 Likes

That worked! Thanks! Going to try this for the part number as well.