web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Email triggers not working in Power Automate

(0) ShareShare
ReportReport
Posted on by 73

I have what I would think is a very simple set of triggers for incoming emails in Power Automate using When a new email arrives in a shared mailbox - trigger only if incoming email is from a specific domain and if the subject contains a specific string.

 

triggers.jpg

I have tried different combinations (including endsWith for the email domain) without success and keep getting errors like 

The template language function 'xxx' expects its first parameter to be of type string. The provided value is of type 'Null'

 

Help to identify my error greatly appreciated!

C

I have the same question (0)
  • Caspar_Rubin Profile Picture
    831 on at
    Re: Email triggers not working in Power Automate

    Hey

     

    The trigger conditions look fine to me. 

     

    Are you sure that the trigger is the problem here? If the trigger is the issue, usually the flow wouldn't even run and give you errors... They simply don't start...

    Are you sure that the error doesn't come from an action further down in the flow?

     

    cheers

  • cdfj Profile Picture
    73 on at
    Re: Email triggers not working in Power Automate

    Thanks @Caspar_Rubin - I wish it were so! And thank you for confirming I'm not nuts with the conditions!

    It definitely falls over at the start - when I run a test it fails immediately.

    I am wondering if there can be a conflict with other settings in the trigger? Hyphens in the To email address?

    Your expertise much appreciated!

    image001 (1).png

  • Caspar_Rubin Profile Picture
    831 on at
    Re: Email triggers not working in Power Automate

    Hey

     

    Super strange, I just did some testing with the same trigger conditions and i never got an error.

     

    I've seen that other people have the same error message coming from completely different triggers...

     

    Could you maybe try to save the flow as a copy and try turning on the copy and running it?

    Maybe your flow is buggy... maybe even try creating a completely new flow and create the trigger from scratch if you haven't tried that yet...

     

    Caspar_Rubin_0-1688197937339.png

     

     cheers

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Email triggers not working in Power Automate

    Hello @cdfj 

     

    @In your trigger condition is a the character “@“. This character has a special meaning in power automate. Have you tried to remove it from your trigger condition?

     

    Haven’t tested it, but it is very possible that this is causing the problem.

  • Verified answer
    cdfj Profile Picture
    73 on at
    Re: Email triggers not working in Power Automate

    With a few hours left before I go on leave and offline, I have fixed it. 🤗 I took your advice @Caspar_Rubin and built a new trigger, which inserted an array by default and changing the trigger conditions to Outputs got it running. 

    TriggersWorking.jpg

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard