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 / Running a flow when th...
Power Automate
Answered

Running a flow when the Microsoft Form is not required and populating a person or group

(0) ShareShare
ReportReport
Posted on by

I am creating an internal scheduling tool that names internal participants. The flow is built off of Microsoft Forms and populates a sharepoint list. The column i am trying to populate is required to be a person or group because i am pulling the phone number from office 365 account using a seperate flow. The issue is that i do not always need to know the person in question so it is not a required question. When it is not filled out, the form fails because it does not recognize the person. I am trying to write a formula that leaves the entry blank when the answer is blank and therefore does not error out the form. 

 

every formula i enter comes back invalid. 

if(body('Get_response_details')?['r74aff029d9cf4573a993c94352130c09']=empty,"",body('Get_response_details')?['r74aff029d9cf4573a993c94352130c09'])
 
Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi

    I guess the following expression represents the answer to the optional question asking for a person, right?

    body('Get_response_details')?['r74aff029d9cf4573a993c94352130c09']

     

    If so, I would try with coalesce() function, since Forms wil be probably return NULL value when no answer is given. Not 100% sure since I haven't tested this scenario yet

     

    coalesce(body('Get_response_details')?['r74aff029d9cf4573a993c94352130c09'],'')

     

    Hope this helps

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @bigtuna26 ,

     

    You need to use the equals() function in Expression to determine whether they are equal.

    And you can use the empty() function directly to determine whether the field value is empty.

     

    In addition, we need to use null or '' to indicate null.

     

    Please consider using the following expression:

    if(empty(body('Get_response_details')?['r74aff029d9cf4573a993c94352130c09']),null,body('Get_response_details')?['r74aff029d9cf4573a993c94352130c09'])

    Please take a try.

     

    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

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
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard