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
Unanswered

Error building condition to send an email to assigned user based on list value.

(0) ShareShare
ReportReport
Posted on by

I'm trying to create my first power automate flow linked to a SharePoint list that is dependent on the person column "Assigned To". Once the field is populated or changed, it will send an email to the person in the assigned to role for the list item. I keep getting an error within the process of building the conditional for the statement below.... Any guidance on what exactly I'm doing wrong or not understanding would be greatly appreciated. My initial condition is to ensure that Assigned To = not empty = True.error page 2.PNGerror page 1.PNG

I have the same question (0)
  • C_Hansen Profile Picture
    42 on at
    Re: Error building condition to send an email to assigned user based on list value.

    May I suggest using the 'Get changes for an item or a file (properties only)' action to determine if that field has changed. You would need to subtract 1 from trigger version in the 'since' field ;

     

    sub(int(item()?['{VersionNumber}']),1)
     
    You can then use dynamic content from this action in your condition to check if the field changed and is not blank.
     
    C_Hansen_2-1700005003779.png

     


     


     

    You could also add a 'Trigger Condition' so the flow will only run when the field is not blank. If you would like more details please let me know.

     

    Thanks,

     
  • michael0808 Profile Picture
    304 on at
    Re: Error building condition to send an email to assigned user based on list value.

    It is unnecessary to use the "Get Items" action when you are using "When an file or item is modified". They both return all the data you need.

    What I would suggest is for you to create a new column in your list, lets call it "Email Sent". This will be updated by the flow when it triggers to ensure that you are only sending one email.

    michael0808_4-1700005087150.png

     

    In your trigger conditions, add the following in order to make sure that your trigger only happens when 1. The Email column is not empty, and 2. When the "EmailSent" column is not = "Yes"

    @And(not(equals(empty(triggerOutputs()?['body/Email']), true)), not(equals(triggerOutputs()?['body/EmailSent'], 'Yes')))

    michael0808_0-1700004807611.png

    michael0808_1-1700004833654.png

    michael0808_2-1700004849592.png

     

    Create your Send Email action as you normally would, then right after, create an "Update Item" action to change the value of "EmailSent" column to "Yes".

    michael0808_3-1700005026604.png

     

    I hope this helps get you on the right track!

     

     

  • C_Hansen Profile Picture
    42 on at
    Re: Error building condition to send an email to assigned user based on list value.

    Form my understanding the flow needs to trigger when the user is changed, this would require the email sent column to be cleared as well. 

     

    If you check the person field has changed every time the list is edited, then an email can be sent every time the user is changed/ added, but will not send in any other instance.

     

    Trigger condition could look like this to ensure it only runs when the person field is not blank.

    @not(equals(item()?['PersonField/Email'], null))

  • michael0808 Profile Picture
    304 on at
    Re: Error building condition to send an email to assigned user based on list value.

    With this condition, it won't matter what column is changed, the flow will trigger if any column changes. My method prevents this from happening, however, it can be modified to account for changes to the Person column.

  • C_Hansen Profile Picture
    42 on at
    Re: Error building condition to send an email to assigned user based on list value.

    Your flow will also run when any column is changed, but only when email sent and Person field is not blank. This is fine unless you don't want to make the user clear the email sent column when updating the user.

     

    From my understanding there is no way to trigger a flow from a specific column change, hence why you need to check which column changed once the flow has started. Can you elaborate on how you can trigger the flow based on a specific column change?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

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 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard