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 :
Copilot Studio
Answered

PVA Data Lookup

(0) ShareShare
ReportReport
Posted on by 17

I want to create a chatbot for information services and check for goods order status in the procurement department. This chatbot will function as an information / helpdesk section. Can I create a chatbot that allows users to search the status of the order process by matching the transaction number with our OneDrive Excel Procurement Database (lookup) ?

Categories:
I have the same question (0)
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @Amran ,

     

    Yes, sure, you can do it!

    You can use the logic around the Power Automate following this video: https://powerusers.microsoft.com/t5/Bot-Sharing-Gallery/Health-bot-Calculate-your-BMI-metrics/td-p/679364

     

    Basically, you need to create a question inside the PVA topic that gets the order number to the user.

    When you get the order number, you can send the number to the Power Automate workflow like an input.

    Inside the Power Automate workflow, you can connect with the Excel file using the OneDrive connector: https://docs.microsoft.com/en-us/connectors/onedrive/

     

    When you get the data from your Excel file, you can return to the PVA following my video and create a message inside the PVA topic to show the output variable.

  • Verified answer
    Amran Profile Picture
    17 on at

    Thanks for your enlightment,. i'm still new in this. what script do i use to call this power automate action? 

     

    Amran_1-1602216315098.png

     

  • Amran Profile Picture
    17 on at

    i got this error message as well :

     

    Amran_0-1602216719533.png

     

  • Verified answer
    CleberM Profile Picture
    Microsoft Employee on at

    Hi @Amran ,

     

    You need to have the "Return value(s) to Power Virtual Agents" block as the last item. That's the return block for the flow, which hands off the results to the bot.

     

    Can you try moving that to the end and try again?

  • Amran Profile Picture
    17 on at

    Thank you for your support.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hopefully someone will see this reply.  How are you passing the variable that is coming in from the PVA to the vlookup in the script field - I am stuck with that very thing.

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 177

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 45 Super User 2026 Season 1

Last 30 days Overall leaderboard