microsoft / powercat-business-approvals-kit

MIT License
33 stars 3 forks source link

[Business Approvals Kit - QUESTION] Approvals Kit connector #186

Open KarolFilipKozlowski opened 8 months ago

KarolFilipKozlowski commented 8 months ago

What is your question?

Hello, I have an issue with custom connector. I created Entra Application, I have the environment url but when I adding a new connection I got the error: Create and authorize OAuth connection failed. AADSTS500011: The resource principal named s***s.crm4.dynamics.com was not found in the tenant named ***. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

Here is what I see in security tab for Approvals Kit connector: image

Here is redirect url: image

And my instance url: image

So what is wrong? Something in the Approvals Kit connector, or Entra Application? In my entra app is Accounts in this organizational directory only (...), I added user_impersonation and admin granted access.

What solution version are you using?

1.0.20231222.1

What app or flow are you having the issue with?

Approvals Kit

AB#1991

buckthebug commented 7 months ago

Have tried replacing the env variable with URL of your environment on the first tab of the connector? See https://github.com/microsoft/powercat-business-approvals-kit/issues/135 I think this hasn't been fixed yet. I had to replace it again after upgrading on the latest version.

Grant-Archibald-MS commented 7 months ago

@KarolFilipKozlowski the host name in the General Tab and the Resource Url need to be your dataverse organization url. For example contoso.crm4.dynamics.com

We are in the process of updating the documentation with these instructions

KarolFilipKozlowski commented 7 months ago

@Grant-Archibald-MS after a few tries to edit and save, the connection was saved. In general, I did nothing special, just copied and past link form session details. But now I have other problems, I can't save workflow, status is pending and pending.

But it's for other issues ticket. However, if you can help me with other things. How uninstall solution? I get a timeout, should I use for example some CIL commend?

sukumar83 commented 6 months ago

@Grant-Archibald-MS - I am facing similar issue in latest version of kit where in i can't add connection even though i have populated both resource url and host name. Could you help please, Solution version -1.0.20240206.2 error in custom connector ![Uploading Hostname.JPG…]()

UncleBoost commented 6 months ago

Try resetting your client secret in Azure AD and add the secret value in your custom connector. You may have added the secret ID instead of the secret value.

sukumar83 commented 6 months ago

Thanks , will try

On Mon, 4 Mar 2024 at 07:19, Glenn Slender @.***> wrote:

Try resetting your client secret in Azure AD and add the secret value in your custom connector. You may have added the secret ID instead of the secret value.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/powercat-business-approvals-kit/issues/186#issuecomment-1975878887, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMDKOECQ6GPX5MP6NJCFD3YWQOAPAVCNFSM6AAAAABBTPXWE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVHA3TQOBYG4 . You are receiving this because you commented.Message ID: @.*** com>