
Announcements
Dear friends, colleagues,
Today I'm working on a (classic) Power Virtual Agent of one of my clients. A question is asked in the chat:
(sorry for the Dutch version, translations: Question, Ask a question, "What EAN Code is involved?", Identify, Number, Save response as)
Client would like the user not to be able to enter anything but a maximum of 18 numeric values. As far as I can see, I can only have PVA extract numeric values from the input, but I can't limit the input itself.
As you may have guessed, PVA still has quite a lot of mysteries for me, but I'm learning.
Any thoughts?
Thanks in advance,
regards,
Jeroen
Hi @jonckhje,
Like mentioned in the other thread, my suggestion would be to use a custom entity with a regular expression for your EAN Codes, https://learn.microsoft.com/en-gb/microsoft-copilot-studio/advanced-entities-slot-filling#regular-expression-regex-entities
Try the below regex
(.*)(\d{18})(.*)