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 / Send an email When an ...
Power Automate
Unanswered

Send an email When an item in a SharePoint list is modified based on the value of an item changed

(1) ShareShare
ReportReport
Posted on by 181

Hi all, i am trying to create power automate flow to send an email when an item in a Sharepoint list is modified based on item value changed. 

 

For example, i had the column in the SharePoint List called "Cable left". If the value of "Cable left" changed, it will send an email.  

 

I found that Microsoft provided the template for the captioned subject but how can i set the condition that if value of "Cable left" increase or decrease, it will send email?

 

Would anyone can help me?

 

AT_AlanTse123_0-1669713928710.png

 

 

Thank you very much.

 

Sorry for my poor english.

 

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @AT_AlanTse123 

     

    Not sure how we can determine if the value increased or decreased. But by using the action called send http request to sharepoint you will be able to get the previous value. You already have the current value. So, by this you can automatically know if it increased or decreased. Or maybe send both values in the email.

     

    Giving you a link how you can do the above:

     

    https://www.sharepointsiren.com/2021/05/power-automate-sharepoint-get-column-changes/

    https://www.youtube.com/watch?v=DT6BpixFbHY

  • AT_AlanTse123 Profile Picture
    181 on at

    Thank you very much for your information.

     

    I tried and refer the link to create the flow and tested not work, it showed the error:

    The length of the URL for this request exceeds the configured maxUrlLength value.

     

    And it showed the error is on the third block ("Send an HTTP request to Sharepoint").

     

    I don't know how to change Uri.

     

    Would you please help me?

     

    Thank you.

    Below is the flow:

    AT_AlanTse123_1-1669795418286.png

    AT_AlanTse123_2-1669795448243.png

    AT_AlanTse123_3-1669795493560.png

     

     

     

     

     

  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @AT_AlanTse123 

     

    Nice work till now. 

    The place where you made a mistake is,

    in the uri, in the versions, just pass the since version dynamic field dont pass the body.

    Body contains everything of that item, but since version will only have the since version for that item.

     

    Now it should work.

     

    Just paste this in expressions after versions:

    outputs(‘Get_changes_for_an_item_or_a_file_(properties_only)’)?[‘body/SinceVersionId’]

  • AT_AlanTse123 Profile Picture
    181 on at

    Thank you for your reply.

     

    I try to refer your suggestion to update the uri and run again.

    It showed the error:

    Cannot find resource for the request version.

    but i had enable versioning 

     

     

  • Sundeep_Malik Profile Picture
    6,484 on at

    @AT_AlanTse123 

     

    I edited my above comment to paste this expression after versions:

    outputs(‘Get_changes_for_an_item_or_a_file_(properties_only)’)?[‘body/SinceVersionId’]

    Did you do that? still getting error, if yes, send the ss of both the flow in edit mode and the error in run history.

  • AT_AlanTse123 Profile Picture
    181 on at

    I do that but still has error : bad request , below is the flow in edit mode:

    AT_AlanTse123_1-1669798306138.png

    AT_AlanTse123_3-1669798407664.png

    Error message

    AT_AlanTse123_0-1669941042516.png

     

    AT_AlanTse123_1-1669941048551.png

     

     

     

     

    Thank you very much.

  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    @AT_AlanTse123 

     

    Oh saw the mistake:

     

    I just tried it on my end and it worked. You have directly written the expression. Do something like this:

     

    Just paste the following directly in your uri:

    _api/web/lists/getByTitle('CLPeS Cable Store')/items(@{triggerOutputs()?['body/ID']})/versions(@{outputs('Get_changes_for_an_item_or_a_file_(properties_only)')?['body/SinceVersionId']})

     

    Sundeep_Malik_0-1669798853896.png

    Hopefully it works this time.

     

  • Sundeep_Malik Profile Picture
    6,484 on at

    @AT_AlanTse123 

     

    But when I tried this, I noticed something. It will only give you a true or false value for the column changed. It will not tell you the previous value. 😞

    So, you will not be able to determine it increased or decreased.

     

    Edited:

    It gave I was using it incorrectly. Haha.

  • AT_AlanTse123 Profile Picture
    181 on at

    It is worked, thank you very much for your help.

     

    Ok, it is not be able to determine it increased or decreased 

    That's the way it is

  • Sundeep_Malik Profile Picture
    6,484 on at

    @AT_AlanTse123 

     

    After this use Get item action. Then take the column for which the value has changed. Then just find the difference between them. Something like this:

     

    Sundeep_Malik_0-1669799861880.png

     

     

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