web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

undefined

(0) ShareShare
ReportReport
Posted on by 78

Hello everyone

I need a big help here I am writing a powershell script to execute from my powerapps. I pass three parameters into the flow which is the environment (ie Para1), User Guid(ie Para 2) and the APP ID GUid (ie Para 3). I need to make it run as a powershell script

 

Below is my code that is going to create a file in onedrive. I am just guessing this is the way to do it

 

param([string] $Environ = Para1,
[string] $Userguid = Para2,
[string] $Appguid = Para3
)https://australia.flow.microsoft.com/manage/environments/ab6675c6-b992-4ca9-80d8-b87f1dfcb9d1/flows/21d64114-cf7f-4535-b888-322b94d68be5 
Remove-AdminPowerAppRoleAssignment -$Environ -AppName $Appguid -RoleId $Userguid

 

I have attached what I have created in flow and if someone can find the solution I would really appreciate it

I have attached two images of my flow

 

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @mpezzutti 

     

    I do not see the screenshots. And please track this post here as it seems to be a duplicate one : https://powerusers.microsoft.com/t5/General-Power-Automate/Power-Shell-script/m-p/454637#M45115 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard