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 / Need a conditional "LI...
Power Automate
Answered

Need a conditional "LIKE" formula

(1) ShareShare
ReportReport
Posted on by 26
Hi, I hava a flow that scrapes my outlook calendar for bookings (made via MS Bookings) and returns the Service name as part of a populated export csv.
The Service names are:
  • America
  • Europe
  • Africa
For some reason, Outlook has changed the structure of itself and now instead of Service returning "Africa", it will return "Africa - Mr A Aaronson" (the name of the person who the meeting is with).
The formula I use to populate that field in my csv is:
      "Service": "@{item()?['subject']}"
Is it possible to make this a simple LIKE formula... something along the lines of..
 
      "Service": "@{item()? if(['subject'] like "America" then "America" else if(['subject'] like "Europe" then "Europe" else if(['subject'] like "Africa" then "Africa" else ""}"
 
Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @ChrisDMU 

     

     

    Try the below

     

    image.png

     

    Expression I used above is: first(split(outputs('Compose'),' - '))

     

    Thanks

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

    Hi @ChrisDMU ,

    Please try the expression:

     

    if(contains(item()?['subject'],'America'),'America',
    if(contains(item()?['subject'],'Europe'),'Europe',
    if(contains(item()?['subject'],'Africa'),'Africa','')))

     

    Best Regards,

    Sunshine Gu

  • ChrisDMU Profile Picture
    26 on at

    Works beautifully (NB, there is a comma missing after 'Europe' )

     

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

    Hi @ChrisDMU ï¼Œ

    Thanks for reminding me that I've finished revising.

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard