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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Work Flow not working

(0) ShareShare
ReportReport
Posted on by 1,151

Hi All,

I have copied a work flow from an article on here but just at the end it doesn't work. It looks as if the "Initialize variable to hold value to be compared" isn't working and I am very new to this. Below is the flow. At the end I have shown the Run History.

 

PA1.JPGPA2.JPGPA3.JPGPA4.JPGPA5.JPGPA6.JPG

 

The body expression is body('Parse_JSON')?['d']?['results'][1]['AdditionalComments']

PA7.JPG

 

Run History

 

PA8.JPG

Categories:
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @jbrines,

     

    It seems that you want to check if the additional comments changed, right?

    There is a new action release named get-changes-for-an-item-or-a-file-(properties-only), it will return information about columns that have changed within a given time window.

     

    add(int(triggerOutputs()?['body/{VersionNumber}']),-1)

     

    Screenshot 2020-12-16 134942.jpg

     

    Screenshot 2020-12-16 112125.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • jbrines Profile Picture
    1,151 on at

    @v-litu-msft 

     

    Where does it determine that Additional Comments has changed as I only want to send an email when that has changed?

     

    Where do I put 

    add(int(triggerOutputs()?['body/{VersionNumber}']),-1)

    J

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @jbrines,

     

    It must have a dynamic content named Has column changed: Additional Comments. Put it into the condition action, and if it equals true, send Email, put the Send email into the Yes branch.

     

    The expression is the combination of the two parts, you could follow my screenshots or input it directly into the Sharepoint action:

    Screenshot 2020-12-16 173322.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • jbrines Profile Picture
    1,151 on at

    @v-litu-msft 

     

    Thanks that's it working.

    J

  • jbrines Profile Picture
    1,151 on at

    @v-litu-msft 

     

    A couple of questions

    1. Is it possible to add a URL to the item that has been updated to an email?
    2. Is it possible to add who updated the item to an email?

    Thanks in advance.

    J

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @jbrines,

     

    Yes, you could use Get item action, it will return Link to item and Modified by Displayname and email, you could insert them into the Email.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard