I have read this solution here:
DeepakS has provided a solution, but I cannot fathom what it means.
What is workflow() and how do I use it?
I do not see any information I can use at the link: https://docs.microsoft.com/en-us/connectors/powerplatformforadmins/#get-environment-as-admin
Can anyone provide me with more details?
Solved! Go to Solution.
Hi @stapes ,
I think that your question should be posted on PowerAutomate community.
But, here is your answer:
workflow() is a function in PowerAutomate, you should use it inside the Get Environment as Admin action. On Get Environment as Admin action environment please use Enter a custom value and then use the following formula to get your result:
See the picture:
Hi @stapes ,
I think that your question should be posted on PowerAutomate community.
But, here is your answer:
workflow() is a function in PowerAutomate, you should use it inside the Get Environment as Admin action. On Get Environment as Admin action environment please use Enter a custom value and then use the following formula to get your result:
See the picture:
That's great @gabibalaban
How can I get that data back to my app? I usually use a Request / Response in the Flow & a ClearCollect in the App.
Yes ... Use from PowerApps ->Action -> PowerAutomate and create a flow triggered by PowerApps.
Use as last action in PowerAutomate the action Respond to PowerApps ( and set the data you need that PowerAutomate to respond to PowerApps).
I can't seem to make that work.
All I am getting back in my App is a Boolean 'True' value:
Set(gblEnvironmentVariable,'PowerApp->GetEnvironmentasAdmin'.Run());
You mean that when you use
gblEnvironmentVariable.DisplayName
you didn't get the desired result ?
If no, please go to PowerAutomate and check the succesfullines of the flow.
To check the issue please set :
Set(gblEnvironmentVariable,'PowerApp->GetEnvironmentasAdmin'.Run().displayname);
this it should set gblEnvironmentVariable only with the displayname received from PowerAutomate.
Is there any possibility to set/use gblEnvironmentVariable in other place of the app ?
It does not allow Set(gblEnvironmentName,'PowerApp->GetEnvironmentasAdmin'.Run().DisplayName)
I get Invalid use of '.'
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
191 | |
45 | |
45 | |
36 | |
36 |
User | Count |
---|---|
261 | |
82 | |
78 | |
69 | |
69 |