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

Notifications

Announcements

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
    Moderator 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard