web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trying to build a flow...
Power Automate
Answered

Trying to build a flow to compare 2 arrays. First array is user defined, second array is of a data verse table.

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

     I trying to build a flow that compares 2 arrays. The first array is a user defined array and second array comes from a data verse table(I'm using list rows action). I want to compare these 2 arrays and send an email to users, email address comes from data verse table. I can't compare the 2 arrays for some reason, the response from list rows is in a different format. 

 

This is the user defined array.

Poweruser_Raj_0-1663784236475.png

This is  for each loop to compare 2 arrays. My question is what is the value I have to use on the right hand side to compare the 2 values? I used all the dynamic values generated it doesn't seem to work. 

Poweruser_Raj_2-1663784438373.png

This is the response I get from list rows (from data verse table) - [{"odata.type":"#Microsoft.Dynamics.CRM.DY12345","odata.id":"dummy)","odata.etag":"W/\"12345\"","odata.editLink":"cr68a_test_dummy_tests(cb09362b-2039-ed11-9db0-000d3a15eb8f)","cr68a_name":"ZVXFED1110C0","cr68a_firstname":"Dummy","cr68a_lastname":"Test","cr68a_emailaddress":"1234test.com","cr68a_test_dummy_tests@odata.type":"#Guid","cr68a_test_dummy_testid":"cb25362a-1239-yd11-9db1-555d3a15eb8f"},

I want the value of cr68a_name i.e. - ZVXFED1110C0 in the If condition.

 

These are the dynamic values generated - I tried comparing with all the fields in here. I have to compare it to Employee ID. So want the value of - cr68a_name i.e. - ZVXFED1110C0 in the right.

Poweruser_Raj_3-1663784858433.png

 

Thank you for your time.

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Poweruser_Raj ,

     

    Hope you are doing well.

    Condition left - items('Apply_to_each')

    Condition right - items('Apply_to_each_2')?['cr68a_name']

     

    Best Regards,

    Wearsky

  • Poweruser_Raj Profile Picture
    7 on at

    Hey, thanks a lot @v-xiaochen-msft . I have one more question. I have list / array variable in this structure - 

    [
    "|Forest south - Singapore",
    "Dx11223355|Lakeside - Century",
    "|Wilooo",
    "DVX223344|Limperis",
    "|Forest City - Sarah",
    ]

     

    How do I loop through this? I want only the values before "|" symbol in the apply to each. I was want to remove the empty values before "|". Any help is appreciated. Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 376

#2
Valantis Profile Picture

Valantis 361

#3
David_MA Profile Picture

David_MA 294 Super User 2026 Season 1

Last 30 days Overall leaderboard