Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Environment discovery failed. No matching environments matched the given Id - PowerApps

Am trying to connect to one of my PowerApps environment using the console app given in the following URL

Get started with the Common Data Service SDK

I followed all steps provided in the link. Registered App in AD, created environment and database in powerapps, replaced all values of the app.config sample code with the actual values. But, when i try to run the console app, it shows prompt as expected, once i give access using the prompt, it is showing following error

{"Environment discovery failed. No matching environments matched the given Id of {{my environment GUID}}."}

at following line

var client = ConnectionSettings.Instance.CreateClient().Result

What am i missing here ?

like image 950
Ranadheer Reddy Avatar asked May 29 '18 12:05

Ranadheer Reddy


1 Answers

From reading everything and looking at the comments, apparently it's no longer available. I took a screen shot with the answer that was just a few months ago. Other people are having the same issue. So what was said is it's no longer available

https://docs.microsoft.com/en-us/common-data-service/entity-reference/cds-sdk-get-started#sample-console-application

enter image description here

This may be a work around https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/overview

like image 64
Halonic Avatar answered Sep 21 '22 14:09

Halonic