Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation - BUG] Get Solution Artifacts Custom Action seems to have a hardcoded user in it #407

Open
bartsneary opened this issue Jun 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@bartsneary
Copy link

bartsneary commented Jun 19, 2024

Describe the issue

In the Satellite solution, when attempting to mark a flow as one to meter, it calls a Cloud Flow that attempts to run a Dataverse action that will retrieve the solution components. When making that call, it always errors with a message that systemuser with Id = e4fcf585-9fa7-ed11-aad1-00224805c3e1 Does Not Exist. Since I'm authenticated to the Dataverse connector as a user that exists and is different from that, my assumption is the action itself has a user hard coded somehow. Not sure how to move forward.
Screenshot 2024-06-19 083823
Screenshot 2024-06-19 083742

Expected Behavior

Action would run under the context of the connector's logged on user or there would be instructions for how to set up the right application user to perform this action.

What component are you experiencing the issue with?

Cloud flows

What solution version are you using?

1.0.20230908.4 (latest satellite)

What app or flow are you having the issue with?

Get Dataverse Solution Artifacts

Steps To Reproduce

Attempt to use it (it's called from the Automation Solution Manager App) by trying to meter a flow.

Anything else?

No response

AB#3634

@bartsneary bartsneary added the bug Something isn't working label Jun 19, 2024
@carloangelo-reyes
Copy link

I also experienced the same.

You need to follow this instruction to create a Microsoft Entra app.
https://learn.microsoft.com/en-us/power-automate/guidance/automation-kit/setup/satellite#create-a-microsoft-entra-app-registration-to-connect-to-dataverse-web-api

Then, create an application user inside Dataverse, per satellite environment.
https://learn.microsoft.com/en-us/power-automate/guidance/automation-kit/setup/satellite#create-an-application-user-inside-dataverse

Get the UserID from the Dataverse table named "User".

You may either update the environment variable "Solution Manager Artifacts Read User Id" to use the UserID of the MS Entra app or delete the Satellite Solution then import it again.

@bartsneary
Copy link
Author

bartsneary commented Jul 3, 2024 via email

@carloangelo-reyes
Copy link

Hi Bart,

By any chance, have you also experienced this issue? #408

@bartsneary
Copy link
Author

bartsneary commented Jul 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants