web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Input limiter in Power...
Copilot Studio
Answered

Input limiter in Power Virtual Agent

(0) ShareShare
ReportReport
Posted on by

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:

jonckhje_0-1716902097037.png

 

 

(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

  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    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})(.*)

     

    eancodes.pngeancodes_regex.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 120 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 90

#3
anirudhev Profile Picture

anirudhev 70

Last 30 days Overall leaderboard