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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Triggering when column...
Power Automate
Unanswered

Triggering when column is modified.

(0) ShareShare
ReportReport
Posted on by 13

Thanks in advance, I thought this going to be easy but my flow keeps failing.
I am on the same environment.
I have a SharePoint Site with 2 lists:

Orders
- Status (choice column with 3 values: Created, In Progress, Completed)
- Customer (Lookup column to Customers list, Name column)

Customers
- Name (single line text)
- Email (single line text)

I have attempted to create a workflow but keeps failing or just goes through.

1. Step 1
I created a cloud automated trigger: When an item or a file is modified.
Found my site, and chose Orders list.

2. Step 2:
I added a Condition action.
Status is equal to Completed
I also tried - because I saw it in the dynamic content menu:
Status Value

3. Step 3
Inside If Yes box
I added an action Get Item (which I renamed to Get Customer Details).
Selected SharePoint Site, and selected Customers list.
Filter Query: Selected Customer Value and then added "/Name" (without quotes). I also tried this without /Name.

4. Step 4
Right after that I added Apply to each
On Select an output from previous steps, I selected value (from the Get Customer Details step). I tried value, body, both value and body.


5. Step 5
Within Apply to Each block, I added Send an email (V2) for whatever reason it wrapped it into another Apply to each.
To: Email (dynamic block)
Subject: Test
Body: Name, Customer Id, Total Price (all dynamic blocks).

So when I test it. it Fails it doesn't get based the condition.
I have tried different iterations of the flow and when I do get to the If yes.. it fails seeing error messages like:
ActionFailed. An action failed. No dependent actions succeeded.

Any help would be great thanks again!

Categories:
I have the same question (0)
  • Verified answer
    harshdeol Profile Picture
    441 Moderator on at

    Hi @pacodub ,

     

    Did you trying to send the email if Order Status is Changed to "Completed" using this flow. If yes, you can use this approach as well. I created the flow in my environment please review it and give it a try at your end.

     

    I created two SharePoint Lists with following Columns:

    Customers:

    - Name (Single Line of Text) [I renamed the default "Title" Column as "Name"]
    - Email (Single Line of Text)

     

    I added one test record. 

    harshdeol_0-1699215768455.png

     

     

    Orders:

    - Customer (Lookup column to Customers list, Name)

    - Total Price (Single Line of Text)

    - Status (Choice: Created, In Progress, Completed)

    I added a test record and set the Status as "In Progress" initially.

    harshdeol_1-1699215916106.png

     

     

    // Power Automate Flow

     

    Now here are the details about the POWER AUTOMATE FLOW:

    harshdeol_0-1699219433633.png

     

    Please adjust and configure the content of the mail accordingly.

     

     

    //Testing

     

    To test the flow, I changed the Status to "Completed". 

    harshdeol_4-1699217568333.png

     

     

    The Flow triggers and sends the email to the customer's email address.

     

    //Output in email:

     

    harshdeol_0-1699218821845.png

     

     

    //NOTE: 

    The above flow sends an email on each modification of an item in the 'Order' List irrespective of the status field. To prevent this, please make sure to add the trigger condition.

     

    To add trigger Condition:

    Click on three dots(...) of the trigger > Setting > Trigger Conditions > Add trigger Condition (given below)> Done.

     

     

     

    @equals(triggerOutputs()?['body/Status/Value'],'Completed')

     

     

     

    harshdeol_6-1699218444401.png

    harshdeol_7-1699218455832.png

     

    Now, the flow will only trigger if "Status" Column is modified with value "Completed".

     

    Please try it and let me know if you have any questions or if you encounter any errors.

     

    ----------------------------------------------------------
    If your question got an answer, please click "Solved."
    If you liked my answer, hit the thumbs-up button.

    Thank you,
    Harsh Deol

  • pacodub Profile Picture
    13 on at

    Thanks Harsh! That worked.

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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard