简体   繁体   English

如何在 Power Automate 中的日历邀请中获取与会者的全名

[英]How do I get the Full Name of attendees on a calendar invite within Power Automate

I'm trying to iterate through the list of attendees, both required and optional.我正在尝试遍历必需和可选的与会者列表。 I have a Power Automate that is correctly getting我有一个正确获取的 Power Automate

However, instead of the email addresses, I would like to get the Full Names但是,我想获取全名而不是 email 地址

I tried this to convert the string into an array, to then iterate and use 'Get User Profile V2' to get the 'Display Name'我试过将字符串转换为数组,然后迭代并使用“获取用户配置文件 V2”来获取“显示名称”

This doesn't seem to work这似乎不起作用

@{items('Apply_to_each_Calendar_Event')?['requiredAttendees']}.split(';')

What I'm wanting is to do the following:我想要的是执行以下操作:

go from a string containing: email1@test.com;email2@test.com go 来自包含以下内容的字符串:email1@test.com;email2@test.com

Ultimately to put into a variable to look like:最终放入一个变量看起来像:

[[First Last1]]
[[First Last2]]

Where the full name found from Get User Profile from email1@test.com will return 'First Last1' and email2@test.com will return 'First Last2' respectively.从 email1@test.com 获取用户配置文件中找到的全名将返回“First Last1”,email2@test.com 将分别返回“First Last2”。

Snippet from the flow流程中的片段

在此处输入图像描述

You need to initialize an array prior to your loop and split it there.您需要在循环之前初始化一个数组并将其拆分在那里。

This is the expression that's in the second step below...这是下面第二步中的表达式...

split(variables('Email Addresses'), ';')

... with PowerAutomate, it's not a programming language so the dot notation doesn't work, you need to use formula based expressions. ...使用 PowerAutomate,它不是一种编程语言,因此点符号不起作用,您需要使用基于公式的表达式。

This is a basic mock up of what I'm talking about...这是我正在谈论的内容的基本模型......

流

Result结果

结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM