Hello,
I need to have the output of an array that includes values from a Sharepoint List converted into a string with only the emails. The column it is pulling from is of type Choice.
The output is a list of email addresses, but the values are currently being pulled with extra characters, which means I cannot add the output as Dynamic Content in the 'To:' section of the 'Send an email (V2)' action. I've seen other solutions online that only seem to work if you want to send a separate email to each user with the Apply to Each function, but I want to send 1 email to all unique users.
Output I'm trying to fix:
I need this to instead be returned as just a string of the email addresses, separated only by a space, at most.
Or, I need an additional action/ expression that will convert it to that format.
-----------------------------------------------------------------------------------------------------------------------------------
Here is the whole list of actions ('Get items' action used to access Sharepoint List items is above these):
------------------------------------------------------------------------------------------------------------------------------------
Action Details:
---------------------------------------------------------------------------------------------------------------------------------
'BuyerEmail.Value' Expression: item()?['BuyerEmail']?['Value']
'Compose - Remove Duplicates' Expression: union(outputs('Compose_-_Empty_Array'),body('Select_-_Users'))
---------------------------------------------------------------------------------------------------------------------------------
Thank you for taking the time to read this.
Thank you in advance for any help.
Cheers