I have a power flow that is triggered by a HTTP request. I have added a trigger condition by requiring a key to restrict unauthorized calls, like seen below:
我有一个由HTTP请求触发的功率流。我增加了一个触发条件,需要一个键来限制未经授权的呼叫,如下所示:
I want to store this key to an environmental variable and reference this value to trigger condition.
How can this be done?
我想将这个键存储到一个环境变量中,并引用这个值来触发条件。如何做到这一点呢?
更多回答
优秀答案推荐
You can read the environment variable value in Power automate cloud flow trigger conditions using syntax like:
您可以使用如下语法读取Power Automate Cloud Flow触发条件中的环境变量值:
parameters('MyEnvVariable (cr86e_MyEnvVariable)')
Where MyEnvVariable
is Display name and cr86e_MyEnvVariable
is Name of environment variable.
其中,MyEnvVariable是显示名称,cr86e_MyEnvVariable是环境变量的名称。
Assuming your environment variable display name and name is as given in above example, you can use trigger condition like:
假设您的环境变量DISPLAY NAME和NAME如上例所示,您可以使用如下触发条件:
@equals(triggerOutputs()['headers']?['runKey'],parameters('MyEnvVariable (cr86e_MyEnvVariable)'))
更多回答
我是一名优秀的程序员,十分优秀!