cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Linda777
Helper III
Helper III

Extra email addresses from Output (array)

Hello,

I got a output of an array, like

[

  a@gmail.com,

  b@gmail.com 

]

when create an event, the required field turns out like:

address 1: [a@gmail.com

address 2: b@gmail.com]

I don't know how to remove "[" and ""]" from the email address.

 

Many thanks.Feb20_1.png

 

 

Feb20.png

1 ACCEPTED SOLUTION

Accepted Solutions
DeepakS
Super User
Super User

Hi @Linda777 

 

If output is Array than you should use following expression to get the value:

 

variables('Array')[0]  will give you first email
variables('Array')[1] will give you second email
 
where variable Array is  => ["a@gmail.com","b@gmail.com"]
 
-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
DeepakS
Super User
Super User

Hi @Linda777 

 

If output is Array than you should use following expression to get the value:

 

variables('Array')[0]  will give you first email
variables('Array')[1] will give you second email
 
where variable Array is  => ["a@gmail.com","b@gmail.com"]
 
-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Hi Deepaks,

It works perfectly! 

 

Can I ask an extra question, about the number of array is already changed, I got it from apply for each,  how can i get the number and put it in variables('Array')[x], I put it on a required (to create event) field, like: 

Required: variables('Array')[0];variables('Array')[1];.......variables('Array')[x]

 

once again, thank you very much!😊

Linda

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (2,592)