cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
King
Level: Powered On

condition between an array and a variable

I have an array variable called Existingemails

that stores emails

example

[
{
"Email": "Example1@mail.com"
},
{
"Email": "Example2@mail.com"
}
]

and I have a variable that comes from powerapps that saves an email called EmailParticipant

and I have a condition

consisting of:

Existingemails contains EmailParticipant

but the condition is always false, although Existingemails contains an email that is equal to the EmailParticipant variable

What can I do to evaluate that Existingemails contains an EmailParticipant

5 REPLIES 5
Super User
Super User

Re: condition between an array and a variable

I do not think the array is treated like a string, you could convert it to a string first and try again.

King
Level: Powered On

Re: condition between an array and a variable

Hello @Gristy ,

thanks for answering

what you say makes sense

can you help me convert an array into a string

Highlighted
King
Level: Powered On

Re: condition between an array and a variable

Hi @Gristy 

 

I have converted the array to string and it still doesn't work

Super User
Super User

Re: condition between an array and a variable

make a string variable and then output the array to it in a loop using append to string - i think there are other ways as well but this is what i have done before

King
Level: Powered On

Re: condition between an array and a variable

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,233)