如何在Power Automate中从嵌套数组提取多选择人员列邮箱
提取Power Automate中多选择人员列的邮箱并格式化到HTML表格
方案1:通过Select函数提取后生成表格
针对多选择人员列的「Previous Value」和「New Value」,分别创建Select动作提取邮箱:
提取旧值邮箱
- 输入内容:
outputs('Send_an_HTTP_request_to_SharePoint_for_Previous')?['body']?[0]?['Previous Value'] - 映射设置:
- 键:
旧值邮箱 - 值:
item()?['Email']
- 键:
提取新值邮箱
- 输入内容:
outputs('Send_an_HTTP_request_to_SharePoint_for_Previous')?['body']?[0]?['New Value'] - 映射设置:
- 键:
新值邮箱 - 值:
item()?['Email']
- 键:
完成Select后,将对应的输出传入「Create an HTML Table」动作,即可生成每行对应一个邮箱的表格。
方案2:合并邮箱为字符串后生成对比表格
如果需要更紧凑的对比展示(同一列的多个邮箱用逗号分隔),可以直接在「Create an HTML Table」的列值中使用join()函数,无需单独的Select动作:
表格列配置
- 旧值列:
join(outputs('Send_an_HTTP_request_to_SharePoint_for_Previous')?['body']?[0]?['Previous Value']?['Email'], ', ') - 新值列:
join(outputs('Send_an_HTTP_request_to_SharePoint_for_Previous')?['body']?[0]?['New Value']?['Email'], ', ')
生成的表格示例:
| 旧值邮箱 | 新值邮箱 |
|---|---|
| john.doe@email.com, fiona.apple@email.com | john.doe@email.com |
内容的提问来源于stack exchange,提问作者djducky
相关产品推荐
相关产品推荐

