cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
Super User III
Super User III

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

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

Here is the whole flow:

 

action1.PNG

 

action2.PNG

 

action3.PNG

Highlighted
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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (1,853)