PAWER AUTOMATE-将电子邮件从电子邮件发送到团队频道

发布于 2025-01-20 11:41:11 字数 482 浏览 0 评论 0原文

当电子邮件到达时,我使用 Power Automate 将消息发布到 Teams 频道。但我无法将电子邮件中的电子邮件超链接作为命令通道中的超链接发布,只能作为文本:[https://link.com]。 请问您有什么解决办法吗? 图像

首先,我将 Htlm 转换为文本。 第二步创建NewLine。 下次使用:

split(outputs('Html_to_text')?['body'], 输出('newLine'))

然后过滤数组:

长度(修剪(项目()))

并取第四行:

body('Filter_array')[4]

毕竟发布了第四行。

I'm using Power Automate to post a message to the Teams channel when emails arrive. But I can't post an email hyperlink from an email message as a hyperlink in the command channel, only as text: [https://link.com].
Do you have any solutions, please?
Image

First I convert Htlm to Text.
Second create NewLine.
Next use:

split(outputs('Html_to_text')?['body'], outputs('newLine'))

Then Filter array:

length(trim(item()))

And take line number four:

body('Filter_array')[4]

After all post line number four.

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

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

发布评论

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

评论(2

偏爱自由 2025-01-27 11:41:11

遇到同样的问题后,我偶然发现了这篇文章。我能够通过在“聊天或频道中发布消息”操作中使用代码视图选项来解决它,并在Power Automate中添加HTML链接。

示例电源自动化流量

一旦您在操作内部打开了代码视图后,您就可以使用格式的HTML链接:

<a href="url">link text</a>

用持有URL的变量替换HREF值,您应该设置!

I stumbled onto this post after I was having the same issue. I was able to resolve it by using the Code View option on the "Post a message in a chat or channel" action in Power Automate and adding an HTML link.

Example Power Automate Flow

Once you have opened Code View inside of the action, you are able to use an HTML link in the format of:

<a href="url">link text</a>

Replace the href value with the variable holding the URL and you should be set!

橘和柠 2025-01-27 11:41:11

发现此尝试修复 Power Automate 中的“在聊天或频道中发布消息”操作。

《身份》回答了这个问题,但遗漏了一个关键部分。

添加一个步骤并搜索“初始化变量”,将该变量命名为 LinkURL(或任何您想要的名称),将类型设置为 String 并在“值”字段中输入 Web url。

然后,您可以使用“添加动态内容”功能来放置“Identity 的答案

我的屏幕截图”中显示的 linkURL现在已修复并正在运行自动化

Found this trying to fix a "Post a message in a chat or channel" action in Power Automate.

'Identity' answered it but left out a key part.

Add a step and search 'Initialize Variable' Name that variable LinkURL (or whatever you want) set the type to String and past the web url in the Value field.

You can then use the 'Add dynamic content' feature to place the linkURL as displayed in 'Identity's answer

Screenshot of my now fixed and working automation

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