Hi, I have a SharePoint list named 'Systems' it has a Titlle field and a field called 'SustemMaintainer'. 'SystemMaintaiiner is a 'Person Or Group' columns that allows multiple selections and people only.
In my flow I got the correct row by calling getItems and filtering based on the title column. so I have an array with one row, and that row has an a column that contains an array of people columns:
[
{
"Claims": "i:0#.f|membership|russell.gove@xx.com",
"DisplayName": "Gove, Russell",
"Email": "Russell.xx@xx.com",
"Picture": "https://xx.sharepoint.com/sites/GLMasterData/_layouts/15/UserPhoto.aspx?Size=L&AccountName=Russell.Gove@tronox.com",
"Department": "Infrastructure Services",
"JobTitle": "Sr SharePoint Architect"
},
{
"Claims": "i:0#.f|membership|xx.xx@xx.com",
"DisplayName": "xx, xx",
"Email": "John.xx@xx.com",
"Picture": "https://xx.sharepoint.com/sites/GLMasterData/_layouts/15/UserPhoto.aspx?Size=L&AccountName=John.Njoroge@tronox.com",
"Department": "CFO Staff",
"JobTitle": "Manager Accounting Analysis"
}
]How do I go about sending an email to the Email addresses in that array.
The expression
body('getItems')?['Value']?[0]?['SystemMaintainer']]gets me the list of objects, But how do i extract the email addresses from thos objects in a format thats sutable for sending an email?