cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Mail subject filter - how do i extract project number?

We are trying to building a workflow whereby we are detecting emails within Subject contain project #s like this:

 

Subject: project [25371] drawing blue print

 

I want to extract the project number which is any value between the pipe charcters [12345].  This is to be used for lookup for filing in a separate document set.

[project].PNG

any help appreciated in terms of best expressions to use when a new email arrives under subject filter.

 

thx

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Mail subject filter - how do i extract project number?

Hi @Anonymous,

 

Could you provide more details about pipe charcters?

Do you want to extract the number contained in the subject or do you want to determine whether the subject contains a specific value?

If you want to extract the number contained in the subject, and the format is the same as your example, you may use the WDL function to extract the number.

Like:

replace(skip(split(outputs('Compose'),' ')[1],1),']','')

54.PNG

Please provide more details and we would provide a workaround for you.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Kudoed Authors
Users online (7,116)