gpt4 book ai didi

azure-logic-apps - 使用 Azure 逻辑应用程序在单个邮件中发送多行

转载 作者:行者123 更新时间:2023-12-04 15:54:16 25 4
gpt4 key购买 nike

我想使用 Azure 逻辑应用在单个邮件中发送单个 SQL 查询的多行。我试过了,但我收到了每一行的邮件。有什么办法可以做到这一点?帮助我找到解决方案。

示例查询:

Select * from TestTable; --it has 5 rows for example.

因此,我想使用 Azure 逻辑应用程序在一封邮件中发送这 5 行。如果我们可以将其发送到 excel 文件中,那就更好了。提前致谢!

最佳答案

I want to send these 5 rows in a single mail using azure logic apps.

您可以在电子邮件 body 中将表达式与 body('Execute_a_SQL_query')?['resultsets']?['Table1'] 一起使用,它将在中列出查询结果单个电子邮件。

设计师:

enter image description here

输出:

enter image description here

If we can send this in excel file it would be even better.

如果要将查询结果以excel文件的形式发送并发送邮件,可以添加创建CSV表连接器,发送时将文件添加为附件电子邮件。

设计师:

enter image description here

输出:

enter image description here

关于azure-logic-apps - 使用 Azure 逻辑应用程序在单个邮件中发送多行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52593093/

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