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 / Does the match() funct...
Power Automate
Answered

Does the match() function work in Power Automate?

(0) ShareShare
ReportReport
Posted on by 20
I am trying to use a REGEX formula to validate the expected format of a reference ID number.
 
My Reference ID is coming from another table in Dataverse for a specific record that comes from a When a row is added or modified trigger: 
triggerOutputs()?['body/abc_refID']

My REGEX formula is being pulled from a specific Dataverse column on the account table for a given supplier from a Get a row by ID action: ('Get_a_row_by_ID_Account')?['body/abc_refidvalidation']
 
This is the REGEX formula I am using to validate: 
 
I am setting up a compose action followed by a condition that will check if the output is true. 
 
Here is the 'Compose RefID is Valid' expression: 
@{not(empty(match(triggerOutputs()?['body/abc_refID'], outputs('Get_a_row_by_ID_Account')?['body/abc_refidvalidation'])))}
 
The following condition step is: outputs('Compose_RefID_is_Valid') is equal to true
 
Here is the error I get at the :
Unable to process template language expressions in action 'Compose_RefID_is_Valid' inputs at line '0' and column '0': 'The template function 'match' is not defined or not valid.'.
 
 
ChatGPT sats the match function is not compatible with Power Automate, but other sources online indicate it is. Can I get a definitive answer on this topic and possibly a suggestion on how to dynamically validate this field based on the unique account expectations?
Categories:
I have the same question (2)
  • Verified answer
    Ellis Karim Profile Picture
    11,990 Super User 2026 Season 1 on at
    Unfortunately, Power Automate does not support regex out of the box
     
     
     
    Ellis Karim
    Ellis Karim
    Blog | LinkedIn | Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard