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 Platform Community / Forums / Power Automate / Removing '{}' in multi...
Power Automate
Answered

Removing '{}' in multiple choice answers - even when the question is not filled in owing to the branching in MSFORMS

(0) ShareShare
ReportReport
Posted on by

Hi a quick question I am stuck on

 

I have multiple choice answers and I use join(json(outputs('Get_response_details')?['body/r200a521530d34a3a9d833ec47cfc6c32']), decodeUriComponent('%0D%0A')) and I drop it into the populate a ms word field to remove the '[]' and seperate the selected answers. This works all well and good when the answer is populated. However when the form question is branched off (therefore not completed). I keep getting a null error.  Is there something I can change on the join to rectify this?

 

Any help would be great thanks


 

 
Categories:
  • Verified answer
    Expiscornovus Profile Picture
    33,995 Most Valuable Professional on at

    Hi @clarkyb,

     

    You can check if the array is empty first. If that is false you can use your join expression.

     

    if(empty(json(outputs('Get_response_details')?['body/r200a521530d34a3a9d833ec47cfc6c32'])), null, join(json(outputs('Get_response_details')?['body/r200a521530d34a3a9d833ec47cfc6c32']), decodeUriComponent('%0D%0A')))

     

  • clarkyb Profile Picture
    on at

    clarkyb_0-1679941324037.png

    Have I messed up? I cant get it to work? Thanks

  • Verified answer
    clarkyb Profile Picture
    on at

    sorry ignore last post .... it has worked!! Thanks so much!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard