cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

PowerApp DocumentDB

Hi,

 

I've completely run out of ideas, i need help!!

 

I've connected to my docDb I can :-

  • see how many databases there are, and get their names
  • see how many collections there are and get their names
  • see how many docs are in each collection.

 

BUT I cant read the data .

 

Please post a example or somthing.

 

Gary

1 ACCEPTED SOLUTION

Accepted Solutions
carlosag
Power Apps
Power Apps

Unfortunately today it is not possible to access the properties of the document since PowerApps requires to understand the schema and currently we don't get the schema. We'll be looking on ways to support addin this new capability.

View solution in original post

6 REPLIES 6
v-micsh-msft
Community Support
Community Support

Hi @Anonymous,

 

the AzureDocumentDB.GetDocuments() function should be able to get the documents in record type, if you would like it to display in Gallery, use the following formula with the items property of gallery:

Items = Table(AzureDocumentDB.GetDocuments("DatabaseId","CollectionId"))

 

I am trying to setup the testing environments, so currently it is not available for me to share any example here.

 

The AzureDocumentDB.GetDocument() is also in record type, which you could reference its property through

AzureDocumentDB.GetDocuments().

Hope the information above is helpful.

Regards

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

Thanks for the reply.

I did what you said, but still can't see how to show an document element as part of the gallery.

Gary
Anonymous
Not applicable



just to let you know what I was doing.

I have a cople of listboxes which displays the databases and collections within the docdb
When you select a collection, in the onselect i do this ClearCollect(Documents, AzureDocumentDB.GetDocuments(ListBox2.Selected.id, ListBox1.Selected.id));

and then within the Gallary I try to acces the Documents table.

If I go to the content tab --> Collections i can see my collection.
when I access the Documents table, although I see a list with a scroll bar, there is no data.

Your Thoughts.
Gary
carlosag
Power Apps
Power Apps

Unfortunately today it is not possible to access the properties of the document since PowerApps requires to understand the schema and currently we don't get the schema. We'll be looking on ways to support addin this new capability.

View solution in original post

Ok, but what is the purpose of the Azure DocumentDb(beta) connector for powerapps? In what situation can it be used? 

This connector seems kinda useless when we cannot attach our collection to list in application. Do you have any plans to release such improvement?

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,432)