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 / filter query - item na...
Power Automate
Unanswered

filter query - item name is in short term but filtering value is in long term

(0) ShareShare
ReportReport
Posted on by 53

Is there any solution to escape the problem if the filtering value is using long term but the data is in short term?
for example, I filter it by name eq 'Hong Kong Limited', and there is the record of 'HK Limited' or 'H.K. Limited' only. However, it is the record I would like to get.

 

Is there any suggestion? Please help.

Categories:
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @AdrianChang ,

    My SharePoint List:

    vyetonggumsft_2-1708656176857.png

    Please use the 'Filter_array' control to filter out item records containing the three strings 'H', 'K', and 'Limited'.

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_0-1708655743906.png

    vyetonggumsft_1-1708656061116.png

    @And(contains(item()?['Company'], 'H'),contains(item()?['Company'], 'K'),contains(item()?['Company'], 'Limited'))
    length(body('Filter_array'))

     Best Regards,

    Sunshine Gu

  • AdrianChang Profile Picture
    53 on at

    I think of this too. However, If my data List have many records like 100000+ items, it maybe much slower.

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @AdrianChang ,

    Please refer to this flow.

    vyetonggumsft_0-1708672966187.png

    Company ne 'null' and( substringof('HK Limited',Company) or substringof('H.K. Limited',Company))
    length(outputs('Get_items')?['body/value'])

    Best Regards,

    Sunshine Gu

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 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard