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

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
Community Support

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
New Member

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

Here is the whole flow:

 

action1.PNG

 

action2.PNG

 

action3.PNG

Community Support
Community Support

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
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,873)