1、获取sharepoint list items (filter Query: key eq 'value')

2、filter 数据筛选 (Filter array)

3、存储数据 (Set variable)

(ps: 存储数据之前需要先初始化数据,并且initialize data只能在workflow top)

4、创建table (Create HTML table)

向某个column添加a标签:
concat('<a href="', item()?['{Link}'], '" >', item()?['Title'], '</a>')
HTML 表格不允许您添加另一个 HTML 标记,因为它可能会破坏表格。所以插入表格的a标签会以纯文本的形式显示。
我们需要对创建好的table进行编辑

使用表达式,将转义字符替换撑标签
replace(replace(replace(body('Create_HTML_table'),'<','<'),'>','>'),'"','"')
向创建好的table添加样式
同样使用 Compose Action,使用表达式添加样式(其他样式同理)
replace(body('Create_HTML_table'), '<table>', '<table style="text-align: left;background-color: #f8fcff;border: #ffffff solid 1px;border-collapse: collapse;border: 1;width: 100%;" border="1">')
5、最后send an email 输出Compose之后的数据
补充:
向table中添加样式可以直接用<style>引入,这种方式用起来更简洁灵活,之后修改也一目了然。
<style>
table {
background-color: #f8fcff;
border: #ffffff solid 1px;
border-collapse: collapse;
width: 100%;
}
table thead {
background-color: #dfebf5;
}
table th, td {
text-align: left;
padding: 10px 15px;
}
</style>

参考文档: