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 / Microsoft form to Shar...
Power Automate
Suggested Answer

Microsoft form to SharePoint blank choice columns

(0) ShareShare
ReportReport
Posted on by 85
Hi team,
 
I have a simple flow where the response from a MS Form is created in a SharePoint list.    The form has some branching means some Yes/No questions won't appear to the end user.
 
I was trying to account for that by looking at empty values and sending across a null value to the single choice field but it still populates a value of "No" despite the column being set to no default value and for the column to not require information within it. 
 
if(empty(outputs('Get_response_details')?['body/r1e478abddb9240a18ad7d7072ff5696e']),null,outputs('Get_response_details')?['body/r1e478abddb9240a18ad7d7072ff5696e'])
 
 
Any support would be most welcome :)
 
Thanks
smods
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,788 Super User 2026 Season 1 on at
    Try using the coalesce expression instead it is a lot simpler: coalesce(outputs('Get_response_details')?['body/r1e478abddb9240a18ad7d7072ff5696e'], null)
     
    If that doesn't work, try coalesce(outputs('Get_response_details')?['body/r1e478abddb9240a18ad7d7072ff5696e'], '')
     
    The key difference is in the fallback value. The first expression returns null if the value is empty. The second expression returns an empty string if the value is empty. Depending on how you want to handle the empty case in your workflow, you can choose the appropriate expression. If you need to distinguish between a null value and an empty string, this difference is important.
  • smodkins Profile Picture
    85 on at
    Hi David,
     
    Thank you for coming back to me.  I tried both and the same thing happened.... I have the expression directly within the 'Create Item' field so it maps to the relevant column in the SharePoint list.
     
    Looking at the flow I do believe it's the SharePoint causing the issue as the input on the Create Item correctly shows no input value.  Turns out the column formatting in SharePoint was causing the issue, resetting it to default worked with the second expression you provided, Thank You! 
     
    Can this function be used to return a No value and if so, how?
     
    Thanks
    C
     
     
  • Suggested answer
    David_MA Profile Picture
    14,788 Super User 2026 Season 1 on at
    Since you don't show your form or flow, I am not sure of what you are exactly doing. I assume you have a question such as this:
    I used the two coalesce expressions on this and it didn't error. I tried returning "Not Answered" when it was not answered. The flow still didn't error, but it also didn't return "Not Answered" so that tells me something is being returned from the question even though it is not answered..
     
    So, I combined if and coalesce to return a value and that worked. Try the following:
     
    coalesce(if(equals(outputs('Get_response_details')?['body/r1e478abddb9240a18ad7d7072ff5696e'], ''), null, outputs('Get_response_details')?['body/r1e478abddb9240a18ad7d7072ff5696e']), 'Not Answered')
     
    I am heading to Europe for two weeks, so if this doesn't work, hopefully someone else will have a solution or you'll figure something out. Good luck.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 376

#2
Valantis Profile Picture

Valantis 361

#3
David_MA Profile Picture

David_MA 294 Super User 2026 Season 1

Last 30 days Overall leaderboard