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