I have two arrays, and i combined them using a union action. This is my union action
union(variables('varpartnerBycustomer'), variables('PartnerByCapability')). Here, Variable one is one of my arrays, and the 2nd variable is the 2nd array in the expression.
But when i that this value and put the output in the email since it contains emails, i am not getting emails.

But even after trying it with replace action replace(union(variables('varCustomerByPartner'), variables('capability')), ',', '')
I can't change the values and have errors in the replace action.
How can I fix this issue by changing the comma into a semicolon and sending me a screen shot if you have any other way to combine the array with unique values and use it to email?