gpt4 book ai didi

c# - 替换 Azure 逻辑应用中的字符串

转载 作者:行者123 更新时间:2023-12-02 00:10:53 25 4
gpt4 key购买 nike

当我尝试替换 Azure 逻辑应用中的字符串值时它抛出错误,您无法提供变量的自引用

"Set_variable": {
"inputs": {
"name": "Images",
"value": "@replace(variables('Images'), 'cdn.gomasterkey.com/images/watermark.aspx?imageurl=/uf/', '~~')"
},
"runAfter": {
"Append_to_array_variable": [
"Succeeded"
]
},
"type": "SetVariable"
}

enter image description here

当我保存上面的代码时,我收到此错误,尽管我想从同一变量替换并再次放入其中,但它不允许我提供 self 引用。

最佳答案

您可以在逻辑应用中进行自引用,但是您可以使用 workflow functions获取值,然后将其替换为您想要的字符串。

我使用 actions('Initialize_variable').inputs.variables[0].value 来获取变量。

enter image description here

enter image description here

关于c# - 替换 Azure 逻辑应用中的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59190315/

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