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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
amaaiia
Contributor III

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
Valued Contributor II

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
Valued Contributor II

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
Users online (25)