强大的自动乘法表达式

发布于 2025-01-18 14:16:08 字数 895 浏览 2 评论 0原文

问题:无法在 Power Automate 中进行乘法。

错误消息:

Unable to process template language expressions in action 'Sales_with_Delta' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

用于乘法的表达式:

mul(int(outputs('Compose')),float(variables('delta')))

流配置

在此处输入图像描述

问题:

  • 您能帮忙解决 mul 表达式吗?
  • 我想将“Sales with Delta”变量中的“Sales”与“delta”相乘

请注意

  • 我无法更改声明为“Compose”或“Object”的变量

Issue : Unable to multiply in Power Automate.

Error Message :

Unable to process template language expressions in action 'Sales_with_Delta' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

Expression used for multiplication :

mul(int(outputs('Compose')),float(variables('delta')))

Flow Configuration

enter image description here

Question:

  • Can you please help with mul expression ?
  • I want to multiply 'Sales' with 'delta' inside 'Sales with Delta' variable

Please note

  • I cannot change the variables declared as 'Compose' or 'Object'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷炫老祖宗 2025-01-25 14:16:08

当您指的是对象中的属性时,您需要具体化,请尝试...

mul(int(outputs('Compose')['Sales']),float(variables('delta')))

<

a href =“ https://i.sstatic.net/gqise.png” rel =” nofollow noreferrer“> “

...您可能只需要通过.00001的.00001小数点工作结果您可能不想在那里。

You need to be specific when you're referring to a property in an object, try this ...

mul(int(outputs('Compose')['Sales']),float(variables('delta')))

Worked for me ...

Result

... you may just need to work through the .00001 decimal part of the result that you may not want there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文