Hi,
My second attempt to post here as my first seems to have disappeared into the ether.
Despite never having used Powerapps or Azure previously I've been tasked by work to evaluate if the combination could be used on a project we have. So as a total newbie I apologise now if my query is inane 🙂
I have an Azure Cosmos DB called CasualWorkerPayments which has a collection called CasualWorkers. There are 2 documents in the collection.
I've created a connection using the Azure Cosmos DB connector.
I have then created a canvas app in Powerapps which contains a datatable. Set the data source as the Azure DB connector.
I thought as an initial test I'd return the document ids to the table. So under the 'items' property I've got 'Table(AzureCosmosDB.GetDocuments("CasualWorkerPayments","CasualWorkers"))'. But nothing is returned to the 'Documents' field.
I've also tried using 'AzureCosmosDB.GetDocuments("CasualWorkerPayments","CasualWorkers")' in the OnSelect property of the 'Documents' field but again no data is returned.
I'm sure I'm missing something quite basic but for the life of me I can't figure it out.
Ultimately, I'd not only return the document ids or names but also query the data in the documents and bring those values into a table as well.
Can anyone please point me in the right direction?
Thanks in advance,
Kevin
I have the exact same issue.
If I try to go for a specific document with something like:
Table(AzureCosmosDB.GetDocument("CasualWorkerPayments","CasualWorkers","MyDocID"))
I just get nothing, eventhough the document contains fields.
I've tried that as well and, like you, nothing gets returned.
I'm hoping that it's something that I'm missing as opposed to an issue between powerapps and a cosmos db.
This is completely new territory for me. The last few years I've been working with Oracle pl/sql, writing queries, functions and procedures.
The closest I've come to developing in this way is working with Oracle forms which uses event driven triggers. But that was a few years ago.
Hopefully, someone will come along and point out where we're going wrong 🙂
Kevin
Thanks for that link. I think you're right that the connector is obsolete.
Ah well more things to learn. Not sure my 56 year old brain has enough capacity 🙂
Kevin
Hi @Kevinh and @Axel666 I'm sorry to hear you're experiencing this issue. While the documentation is quite lengthy, the following link may help:
https://www.carlosag.net/PowerApps/Connectors/Azure-Cosmos-DB
If the information provided doesn't help please reply in this thread and I will find a more applicable solution.
Thanks for your suggestion. Unfortunately, it was from this document that I was working. The suggested methods just don't work.
Regards,
Kevin
In reviewing other posts pertaining to Azure Cosmos DB in the Community I came across this thread. @Axel666 I know you're already aware of this as your replied in that thread as well. I will include the link to the thread below.
https://powerusers.microsoft.com/t5/Creating-Apps/Connecting-to-Azure-Cosmos-DB/m-p/190435
Thanks for the link to that thread. I'll have a closer look at it when I continue my PowerApps review in the new year.
Kind regards,
Kevin
User | Count |
---|---|
140 | |
136 | |
77 | |
75 | |
69 |
User | Count |
---|---|
224 | |
186 | |
68 | |
63 | |
57 |