How can I parse this list output and make it a String so I can use it as a sender in an email?

I am trying to pull from a SharePoint list to send an email to a group of people using power automate?

I am following the below steps in power automate

Step 1 Trigger
Step 2 Get Email List – this is pulling from the SharePoint list that contains the emails
Step 3 Select statement. I am mapping email and pulling the email column from the SharePoint List.
Step 4 Send an Email

Step 3 output is below

Here’s the error:

I understand that I need to turn the output from Step 3 into a string so I can send the email, but I’m having trouble doing so. I am obviously able to pull the email directly from the sharepoint list and place it as the sender, but that’s creating three separate emails. The goal is to have one email.

I have tried creating a Select and using the output from that. I have also tried creating an HTML table but since it has the table format I’m able to get it to go into a string.

New contributor

Hirstmj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Based on the exception:

Input parameter ‘To’ is required to be of type ‘String”, the source
type is ‘object’

This means the input type is wrong. You are providing an object, but it expects a string.

You need to convert your list of email addresses to a semicolon-separated string.

Example:

[email protected];[email protected];[email protected]

Here is an example setup for demonstration. I initialize an array, add two email addresses, and combine them using the join function with a semicolon separator:

This style of pattern will work for you …

Step 1.
The Initialize Email Addresses Array is an array variable that stores the array you provided in your question. You’ll already have that.

Step 2.
You need to initialize another array (Initialize Email Addresses Primitive Type Array) that will store original array but transformed out of an object structure into a primitive string type structure for each item.

Step 3.
Loop over each item in the original array and append the value of the email (expression = item()['Email']) to the array created in step 2.

Step 4.
Use the Join operation to join the values from the primitive array into the string that represents the email addresses that will be passed into the Send an email (v2) operation.

Result

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật