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 / Power Apps / Get data from MongoDB ...
Power Apps
Answered

Get data from MongoDB database to data table using custom connector.

(0) ShareShare
ReportReport
Posted on by

I have a MongoDB custom connector and I am trying to display data from MongoDB database into a data table. what PowerApps changes should I do to display these data?

 

when I use this in the items property of the data table: MongoDB.FindDocument("Cluster0","database1", "collection1"), I am getting this error.

"Behavior function in a non-behavior property. You can't use this property to change values elsewhere in the app."

 

Can someone advise here please.

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Zer0 ,

     

    The point is that the formula is a behavior formula.

     

    Please try:

    1\Add a button and set its' OnSelect property to:

    ClearCollect(CollectionName,MongoDB.FindDocument("Cluster0","database1", "collection1"))

    2\Click the button

    3\Set the data table's items property to:

    CollectionName

     

    Best Regards,
    Bof

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 > Power Apps

#1
Vish WR Profile Picture

Vish WR 833

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 383

Last 30 days Overall leaderboard