Hello folks,
I have a sharepoint list called client and one called contact. The client has a lookup into contact with multiple values.
When there is a problem that arise, I want to send an email to all these contact.
1. Get Items
2. Select
Result :
Solved! Go to Solution.
Hi @rhamza,
Ignore my first reply. I missed the part of that you are using a multi select field, my bad 😁
In that case you can use the approach which is nicely described by @tom_riha:
https://tomriha.com/how-to-convert-array-to-a-string-in-power-automate/
1. In the Select action use the follow expression for your Map field.
item()?['Value']
2. Use a compose to join the email values into one string
join(body('Select'),';')
Hi @rhamza,
In an apply to each that would be the fieldname/Value. For example my field is called Contact.
items('Apply_to_each')?['Contact/Value']
Hi @rhamza,
Ignore my first reply. I missed the part of that you are using a multi select field, my bad 😁
In that case you can use the approach which is nicely described by @tom_riha:
https://tomriha.com/how-to-convert-array-to-a-string-in-power-automate/
1. In the Select action use the follow expression for your Map field.
item()?['Value']
2. Use a compose to join the email values into one string
join(body('Select'),';')
1st Thx for your reply, for me This returns "Null"
This is because it is inside the following :
Hi @rhamza,
Have you selected the Contact field in the From field of the Select action?
If so, you only would need to reference the value of the item in the Map field, which would be:
item()?['Value']
Btw, can you share some screenshots of your current setup?
We're getting further!
But the join do not seem to work.
Hi @rhamza,
Can you place your compose action within the apply to each loop?
Dammit... it works! Good job mate.
My understanding of Apply to each was wrong. I thought apply to each was running on contact email but it is actually running on the Get Items and then selecting the contact email
Thx bud !