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 / Extracting list of ite...
Copilot Studio
Unanswered

Extracting list of items from database

(0) ShareShare
ReportReport
Posted on by 4

I want to create a topic that gives users the ability to get a list of rows from a database (in our case, postgres).

 

I am able to use the connector and it does the select on the database and returns something (either record or table).

 

I want to parse the results and display one of the fields in a list return to the user (name column).  I've tried all sorts of things like ParseJSON but that wants a string but the source is a table.

 

Has anybody done this type of selection from a database?  Would be great if our users could ask for the list of items from the DB from Copilot.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,601 Most Valuable Professional on at

    Yes, I've done it. Basically you use a Flow to retrieve the filtered set of records and then use an Apply to each loop on the results to built out a table as a string using the Markdown language. You return that string and display it as a message in the bot.  Here's an article on the markdown syntax you use. Use Markdown language to format Power Automate approvals - Power Automate | Microsoft Learn 

    There is no way to return a data set as a data set to the bot.

  • pasccout Profile Picture
    4 on at

    Thanks.  So using the plug-in preview of Postgres directly within Copilot is not supported?

  • Pstork1 Profile Picture
    69,601 Most Valuable Professional on at

    I misunderstood your question. I thought you were trying to access information in a DB for a bot.  That is the process I described.  I don't have any experience at this point using Postgres.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Yes, you can use the HTTP connector. Make sure you  have a body and place in it.

    use, Compose and ParseJson and then send the response you want back to PVA.

    That doesn't require Postgres or any other library for the outer world.

    Simply using the connectors available, you can get all the data and pass it with a form, table, list, etc.

     

    Cheers,


    Fernando

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
sannavajjala87 Profile Picture

sannavajjala87 160 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 143

#3
Haque Profile Picture

Haque 123

Last 30 days Overall leaderboard