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

gmail subject

When using the Gmail connection to send an email I encountered a bug. If I use a hard-coded receiver address everything works as expected, but when I use an expression to find the receivers email in the text of an incomming email the subject suddenly dissapears.

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @HenrikK,

 

Could you please share a screenshot of your flow’s configuration?

I have made a test on my side and don’t have the issue that you mentioned. The screenshot of my flow’s configuration as below:

 

5.JPG

 The flow works successfully as below:6.JPGBest regards,

Kris

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

Hi Kris,

Sorry for the late reply, I wrote one last week but it got lost...

I don't seem to be able to upload pictures, but what I have is an expression that evaluates an incoming email, finding the text between the two strings 'email:' and 'phone:' and uses that in the to-field. The subject-field is hard-coded. 

substring(triggerBody()?['Body'],add(6,indexOf(triggerBody()?['Body'],'email:')),sub(indexOf(triggerBody()?['Body'],'phone:'),add(6,indexOf(triggerBody()?['Body'],'email:'))))

The flow is run only on emails generated by a webpage form, so this works fine and the email arrives, but without subject. If I replace the expression with a static email address the subject comes back.

 

Best regards,

Henrik

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.

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!

Top Solution Authors
Users online (2,465)