Skip to main content
Community site session details

Community site session details

Session Id : Gckk42BCDCnS3BGlxNvEZk
Copilot Studio - General
Unanswered

Help needed for PVA to add a query

Like (0) ShareShare
ReportReport
Posted on 4 Apr 2022 14:27:40 by 6

I've created a simple bot to get the lists of birthdays and anniversaries by name, unique badge number, month, and event type (birthday and anniversary) . I want to know if we can add any queries to get today's events. For example, if the user wants to know what events (birthday/anniversary) are for today, how do I do that? my Chabot is simple with only topics and no power to automate. 

Categories:
  • Kavyashree_A Profile Picture
    6 on 04 Apr 2022 at 17:01:25
    Re: Help needed for PVA to add a query

    Thanks a lot! I will give this a try and let you know 🙂

  • Pstork1 Profile Picture
    67,247 Most Valuable Professional on 04 Apr 2022 at 15:46:08
    Re: Help needed for PVA to add a query

    Make sure the events in the Excel file are in the form of an Excel Table.  If they are then its a relatively easy flow to create.  

    1. Send the current date as a parameter to the flow
    2. List the Rows in the Excel Table
    3. Filter the array returned by the current date
    4. Do an Apply to Each loop to assemble a markup string table of the results
    5. Return that markup string to the Bot for display
  • Kavyashree_A Profile Picture
    6 on 04 Apr 2022 at 14:42:45
    Re: Help needed for PVA to add a query

    The events are stored in an excel file on SharePoint as well as on my system. Could you help me with how to call and use a power automate flow for this particular question? Any help would be appreciated. Thanks.

  • Pstork1 Profile Picture
    67,247 Most Valuable Professional on 04 Apr 2022 at 14:40:30
    Re: Help needed for PVA to add a query

    Unfortunately, the only way to do that would be to call a Power Automate flow to do the query.  Depending on where the events are stored its a relatively easy flow to build, but there is no way to query it inside a Bot other than using Power Automate, unless the events are all stored in an entity inside PVA.  But storing the events in a custom entity in PVA would take more work than writing a PA flow to retrieve them.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Loading complete