cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FlowNoob123
Level: Power Up

Trying to send an email when a new email arrives.

I have a 3 step flow that i am attempting to setup. As of right now i have two issues with it. Firstly, the flow is:

 

When a new email arrives in a shared mailbox, get a row out of an excel file and then send an email based off of the Excel row.

 

The excel file contains User, Message Body, Subject as a table, saved into the cloud.

 

The first problem is using an expression in the get a row rule. I am in looking in the Excel document for the User Row to base which Message body to send with.

 

Expression:

toLower(triggerBody()?['To'])

 

Error:

 

InvalidTemplate. Unable to process template language expressions in action 'Get_a_row' inputs at line '1' and column '2646': 'The template language function 'toLower' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#toLower for usage details.'.

 

I can remove the toLower portion of the expression and it will make it past this.

 

The next problem I have occurs in the final step, Send an email from a shared mailbox.

 

Capture.PNG

 

It claims the rows are null:

{
"status": 400,
"message": "Parameter 'Subject' cannot be null or empty.\r\nclientRequestId: 931d2ad8-66b0-4d1a-b182-11c0cf674612",
"source": "office365-eus.azconn-eus-01.p.azurewebsites.net"
}

 

Is this bugged or am i doing something wrong.

 

Lastly, i am following this guide:

 

https://quickclix.wordpress.com/2018/03/25/auto-respond-to-emails-using-flow-in-office-365/

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Trying to send an email when a new email arrives.

 

Hi @FlowNoob123 ,

 

Please try this expression:

1.PNG

You could check whether the value filled in each field is consistent with the data stored in Excel table in Flow run history.

 

Best Regards,

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.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Trying to send an email when a new email arrives.

@FlowNoob123 

Can you post additional screen shots of your Flow please.  Specifically, can you post the Get Row or List Rows action you are using.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
FlowNoob123
Level: Power Up

Re: Trying to send an email when a new email arrives.

Here is the whole flow:

 

action1.PNG

 

action2.PNG

 

action3.PNG

Community Support Team
Community Support Team

Re: Trying to send an email when a new email arrives.

 

Hi @FlowNoob123 ,

 

Please try this expression:

1.PNG

You could check whether the value filled in each field is consistent with the data stored in Excel table in Flow run history.

 

Best Regards,

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 91 members 5,471 guests
Please welcome our newest community members: