gpt4 book ai didi

Reference an environmental variable into a cloud flow(将环境变量引用到云流中)

转载 作者:bug小助手 更新时间:2023-10-24 18:32:24 28 4
gpt4 key购买 nike



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:
enter image description here

我有一个由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是环境变量的名称。


enter image description here




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)'))

更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com