Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
amaaiia
Super User
Super User

Send email to users in a list from Lookup activity

I have a simple Pipeline where I first get a list of emails from a Warehouse, and then send an email to all the emails in the list.

amaaiia_0-1710239060878.png

I don't know how to add Lookup results as input in Outlook activity. The output of Lookup activity is as follows: 

amaaiia_1-1710239371652.png

I'm adding to "To" filed the dynamic content: 

@activity('get_error_emails').output.value
But I get an error because what I want is a list of email strings, not a list of objects with user_email attribute.
 
Does anyone know hoy to convert this: 
amaaiia_2-1710239607684.png

Into:

"To":['email1@domain.com', 'email2@domain.com']

 

2 ACCEPTED SOLUTIONS
NandanHegde
Super User
Super User

There are 3 ways :

1) you can semi colon seperate the recipients within the warehouse while executing the lookup activity

2) pass the value of lookup activity to a for each activity. within for each activity,use set variable activity to append the iterations in a semi colon manner

 

or 3) expression :

https://stackoverflow.com/questions/58632744/adf-expression-to-convert-array-to-comma-separated-stri...




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

View solution in original post

Anonymous
Not applicable

Hi @amaaiia 
Thanks for using Fabric Community.
Please refer to this link:
Microsoft Fabric - Pipelines - Parse Multiple Email Addresses for the Office 365 Outlook Activity (y...

Hope this helps. Please let me know if you have any other questions.

View solution in original post

2 REPLIES 2
NandanHegde
Super User
Super User

There are 3 ways :

1) you can semi colon seperate the recipients within the warehouse while executing the lookup activity

2) pass the value of lookup activity to a for each activity. within for each activity,use set variable activity to append the iterations in a semi colon manner

 

or 3) expression :

https://stackoverflow.com/questions/58632744/adf-expression-to-convert-array-to-comma-separated-stri...




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
Anonymous
Not applicable

Hi @amaaiia 
Thanks for using Fabric Community.
Please refer to this link:
Microsoft Fabric - Pipelines - Parse Multiple Email Addresses for the Office 365 Outlook Activity (y...

Hope this helps. Please let me know if you have any other questions.

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors