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 / How to set up a date/t...
Copilot Studio
Answered

How to set up a date/time entity which suggests only dates until today.

(0) ShareShare
ReportReport
Posted on by 20

Hi! This forum has really been helpful for a complete newbie on PVA. I have built a bot which queries an API to get a list of documents. The first question from the bot is to ask which date the document was published. If the reply is "Thursday", the reply from the bot (using the date and time standard entity here) is to choose from two dates, one last Thursday and one for the coming Thursday. In my use-case, a future date is impossible, so I would like the bot to automatically return last Thursday.

 

I cannot find a way of configuring this in PVA. Any help appreciated!

Categories:
I have the same question (0)
  • peterswimm Profile Picture
    Microsoft Employee on at

    This is how the native bot slot works, you could work around this using a custom entity and defining quick replies possibly, but it will behave this way when using the prebuilt system entities. 

  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @Gakku@peterswimm,

     

    You can actually get to that result by customizing the question behavior, by adding entity validation.

    You can force the date to be in the past by making sure it's less than the Now() Power Fx formula.

     

    HenryJammes_1-1687155792462.png

     

    Henry

     

  • Gakku Profile Picture
    20 on at

    I cannot see the additional entity validation option. Do I need to enable it somewhere?

    Gakku_0-1687360859269.png

     

  • Gakku Profile Picture
    20 on at

    Got it! Thanks. I was using the "classic" bot so this option was not available. I am switching over to the new version so I can use this and other updates.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 671

#2
Vish WR Profile Picture

Vish WR 266

#3
Haque Profile Picture

Haque 265

Last 30 days Overall leaderboard