Hello,
I have a question regarding the generation of the Enterprise Item Number.
I need to generate it in two different ways:
- If
MyAttribute = "01", the Enterprise Item Number should be validated using a regular expression. I currently have this implemented with a formula and it works correctly. RegExpr^[0-9]{9}\\\$(only 9 digits, manual input) - If
MyAttribute = "02", the Enterprise Item Number should be generated using a counter through an EKL Business Logic Script, and this also works correctly.
However, I cannot get both methods to work at the same time. It may be that everything needs to be implemented from Data Setup instead.
Could anyone tell me how to implement the regular expression rule ^[0-9]{9}\\\$ directly in EKL script?
Also i get error for string.MatchPattern (string)
Thank you very much.

Hello,
Wrong community: https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/community/swym:prd:R1132100503382:community:63
How are you changing from Business Logic Script to Formula? The method of EIN generation is selected in the admin dashboard and I think only 1 method can be selected at a time. Maybe you are using a new method that I am not familiar with?