web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Automate - Building Flows
Answered

Does the match() function work in Power Automate?

Like (0) ShareShare
ReportReport
Posted on 21 May 2025 18:40:56 by 17
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?
  • Verified answer
    Ellis Karim Profile Picture
    11,179 Super User 2025 Season 2 on 21 May 2025 at 18:47:47
    Does the match() function work in Power Automate?
    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!

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete