Ranadheer Reddy
Ranadheer Reddy

Reputation: 4324

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 ?

Upvotes: 9

Views: 291

Answers (2)

this_is_om_vm
this_is_om_vm

Reputation: 636

I just checkout a new solution for this issue .Please try to make below possible changes.

please install Nuget package for System.Configuration.ConfigurationManager.

And Just let me know if it's not resolved.Thanks for reading

Upvotes: 0

Halonic
Halonic

Reputation: 405

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://learn.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://learn.microsoft.com/en-us/powerapps/developer/common-data-service/overview

Upvotes: 3

Related Questions