Hello,
We are receiving file attachments from email messages. The filename should be structured as follows:
19934_2023_PD1.pdf (ComplexNR-Year-DocType)
By using three compose actions, the filename is checked against the following convention:
- ComplexNR should contain: 5 digits
- Year should contain: 4 digits
- DocType should contain: 3 characters
Values are separated by a _ dash .
For Doctype we have a a mutal agreement to use only the following doctypes in the filename: PD1, PO1, PO3, DB1 . Not everyone keeps to this. We would like to check if the value for doctype is valid. When not the filename does not contain one of the doc. type values we will send a notification to the sender of the message.
How can I validate the value of the doc type?
Flow:
To check the filename:
