Announcements
You could use an Office Script, which is often easier for this kind of task. It supports regular expressions (regex), so you can reliably extract the incident number from the email text even when the format changes slightly.
Since you’re already using Excel, you can also have the script add the extracted number directly as a new row in your Excel table.
Use the Run script (Excel) action in Power Automate.
Alternatively, you can use AI Builder to analyze the email body and automatically extract the incident numbers. AI Builder works well if the email text varies a lot and you prefer a no-code approach. This is probably what I would try first.
Let me know if you want to try one of these solutions and if you need help with that!
chunk(outputs('Compose_4'), 1)
@isInt(item())
join(body('Filter_array'), '')
range( 0, sub( length( outputs('Compose_4') ), 1 ) )
if( isInt(substring(outputs('Compose_4'), item(), 1)), substring(outputs('Compose_4'), item(), 1), ' ' )
split( join( body('Select_2'), '' ), ' ' )
@not(empty(item()))
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 377
11manish 279
David_MA 234 Super User 2026 Season 1