cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SheilaMullane
New Member

Power Automate expressions - LEFT RIGHT

Hi All,

 

I'm trying to extract from Email Subject: Q3 FY20 Quarterly Lease Request due EOD Monday, June 8th.

 

I used this expression to extract Q3 FY20: substring(triggerBody()?['subject'],0,7)

But how do I extract the date at the end of the Email Subject? (anything after the comma).

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Jay-Encodian
Community Champion
Community Champion

Hi @SheilaMullane 

Try - substring(triggerOutputs()?['body/subject'],add(lastIndexOf(triggerOutputs()?['body/subject'],','),2))

1.jpg

 Output

2.jpg

Kind regards

Jay

View solution in original post

2 REPLIES 2
Jay-Encodian
Community Champion
Community Champion

Hi @SheilaMullane 

Try - substring(triggerOutputs()?['body/subject'],add(lastIndexOf(triggerOutputs()?['body/subject'],','),2))

1.jpg

 Output

2.jpg

Kind regards

Jay

Hi Jay,

 

thank you for the prompt reply! it works now! appreciate it!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,490)