简体   繁体   English

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

[英]Replace string in Azure Logic Apps

when i am trying to replace string value in Azure logic app it throwing error that you can't give self reference of variable当我尝试替换 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"
}

在此处输入图片说明

when i save above code i got this error it doesn't allow me to give self reference although i wanna replace from same variable and again put into it.当我保存上面的代码时,我收到了这个错误,虽然我想从相同的变量中替换并再次放入它,但它不允许我提供自我引用。

You could do self reference in logic app, however you could use workflow functions to get the value, then replace it with the string you want.您可以在逻辑应用程序中进行自我引用,但是您可以使用工作流函数来获取值,然后将其替换为您想要的字符串。

I use actions('Initialize_variable').inputs.variables[0].value to get the variable.我使用actions('Initialize_variable').inputs.variables[0].value来获取变量。

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Azure函数调用到Logic Apps中 - Call Azure Functions into Logic Apps 无法在 Azure 逻辑应用中使用 swagger 3.0.1 - Unable to use swagger 3.0.1 in Azure logic apps 使用 Azure Redis 在逻辑应用中进行缓存 - Using Azure Redis for caching in Logic Apps Azure - 安全API应用程序,因此只能由Logic Apps和Web Apps访问 - Azure - Secure API App so only accessible to Logic Apps and Web Apps Azure 逻辑应用将文件内容作为编码字符串返回 - Azure logic app returns file content as encoded string 如何使用Azure函数或逻辑应用程序将数据保存到sql数据库中? - How can I use Azure functions or logic apps to save data into sql database? Transform XML in Azure Logic Apps, upload C# Assembly (.DLL) file to Azure Integration Account and use it inside XSLT (map) - Transform XML in Azure Logic Apps, upload C# Assembly (.DLL) file to Azure Integration Account and use it inside XSLT (map) 部署到 Azure 服务应用程序后 ConfigurationBuilder.Build() 中的 String Null - String Null in ConfigurationBuilder.Build() after Deployment to Azure Service Apps 为什么Azure移动应用程序的数据模型中有字符串ID? - Why is there a string ID in the data model of Azure Mobile Apps? Azure Iot逻辑组件 - Azure Iot Logic Component
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM