GetNew Method directive Condition

Im building a post process Method directive on the Part.GetNew i want to set the RcvInspection to True when a new part is added. that works.
I was recently asked to not set it as true when the PartNum begins with XP or NAP. I set the condition to look for partnum begins with .
I cant get it to work.

any help is appreciated.

GetNew normally does not have any real data (like a PartNumber).
Try doing this on the Added row of the Update Method.

1 Like

whats the wildcard value for C#?
i need to to fire the bpm if any part has NAP spaceXXX or NAPXXXXX

Try StartsWith. Something like:

ttRow.PartNum.StartsWith("NAP")