Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 525 Super User 2025 Season 2
Tomac 324 Moderator
abm abm 232 Most Valuable Professional