Skip to main content
Community site session details

Community site session details

Session Id : KUl6QMgU++4/QfgfgGfCor
Power Automate - Using Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 4 Feb 2020 03:48:49 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'])
 
  • Verified answer
    v-bacao-msft Profile Picture
    on 05 Feb 2020 at 06:26:36
    Re: Running a flow when the Microsoft Form is not required and populating a person or group

     

    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,

  • efialttes Profile Picture
    14,756 on 04 Feb 2020 at 08:45:09
    Re: Running a flow when the Microsoft Form is not required and populating a person or group

    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

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 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete