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 / How to return results ...
Power Automate
Unanswered

How to return results from an array that contain a substring from a column in another array?

(0) ShareShare
ReportReport
Posted on by 11

I want to create a flow that uses data from a Dataverse table to compare to results from a SQL query and return any rows from the SQL query that contain the values from the Dataverse table.  The problem is when extra characters exist in the results from the SQL query.  I'm able to find exact matches between the two arrays, but can't figure out how to search the SQL query array that contain the substring value in Dataverse.

 

Example:

SQL Query: "ABC DEF1234"

Dataverse: "DEF1234"

 

Thanks!

Categories:
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @tsnowden 

     

    while iterating over SQL rows try contains operator

    you can try the below code in composing an expression so the outcomes shall be true/false accordingly you can proceed further

     

    contains(variables('Apply_to_each')['column'],'DEF1234')

     Thanks
    Please click Accept as Solution on this reply if it helped to solve your issue, and thumbs-up if you feel this is useful or important in other ways as a boost.

  • tsnowden Profile Picture
    11 on at

    Thanks for the prompt reply!

     

    I use the contains operator now, but I only get TRUE on exact matches, not when the value in my 2nd array matches as a substring value in the 1st array, which is what I need.

    tsnowden_3-1657056873395.png

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard