Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Email Notification when comments added or modified on a list item

(0) ShareShare
ReportReport
Posted on by 129

Hello,

 

I need a flow to send an e-mail any time a comment is added or modified to a list item. I think I have the start of it but I don't know what to put for the expression to make it recognize that data has been entered or modified in a column (the comments column) 

flowexample.png

 
  • v-bacao-msft Profile Picture
    on at
    Re: Email Notification when comments added or modified on a list item

     

    Hi @ElizabethK ,

     

    It should be body('Parse_JSON')?['d']?]['results'][1]['{ModerationComment}'].

     

    However, the problem you are experiencing now is that the field value of a certain field is empty, but the type of this field defined in the schema needs to be integer, and cannot be empty.

     

    You can change the type of this field in Schema error, it will be set to ["Integer", "null"].

     

    Check this article to solve this problem:

    https://blog.thenetw.org/2019/03/11/quick-fix-microsoft-flow-error-invalid-type-expected-string-but-got-null/

    https://powerusers.microsoft.com/t5/Building-Flows/Parsing-JSON-Response-error-quot-message-quot-quot-Invalid-type/td-p/301536

     

    Best Regards,

  • ElizabethK Profile Picture
    129 on at
    Re: Email Notification when comments added or modified on a list item

    @v-bacao-msft  and @ScottShearer 

     

    I followed the instructions you provided but I am getting an error at the Parse JSON step.

    Here is a shot of my test run:

    Result test.jpg

    This is the specific error message

    coding.png

    I ran into issues right about here in the instructions:

    instructions.jpg

    I can't confirm what I typed but I think it was body('Parse_JSON')?['d']?]['results'][1]['Comments']

     

    Any ideas?

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Email Notification when comments added or modified on a list item

     

    Hi @ElizabethK ,

     

    Please refer to this blog to achieve your requirements.

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Check-for-a-Change-in-a-SharePoint-List-Column-Value/bc-p/248270#M503

    We need to use Send HTTP request to SharePoint to get the version of the item and check if the specific column has been modified.

     

    Best Regards,

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1