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 / Extract comment from a...
Power Automate
Answered

Extract comment from approval request

(0) ShareShare
ReportReport
Posted on by

Hello, I am currently creating a flow that has two approvals requests, where the second one uses the comments submitted in the first approval request. My flow works fine if a comment is submitted, but fails if there is no comment as the array variable becomes "null". Is there a way to mitigate this? 

Thank you!

error message:

aniokilam_0-1691513357890.png

 

Flow: 

aniokilam_1-1691513400393.pnganiokilam_2-1691513418372.png

 

Categories:
I have the same question (0)
  • rzaneti Profile Picture
    4,262 Super User 2025 Season 2 on at

    Hi @Anonymous ,

     

    Try this expression:  if(empty(variables('response')?['comment']), ''variables('response')?['comment']), replacing the red text for the dynamic content of your comment. 

     

    It will append an empty text to your array when there is no comment in the approval. You can also change the empty for any other "default value" when there is no comment in the approval (for doing that, just change the second argument of the expression). 

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Anonymous 

     

    Pls check for null value using "Condition" action. If value is not null, then append the comments in the array variable as show below:

    ManishSolanki_0-1691514610406.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    Thank you, this is exactly what I was looking for!

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard