Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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'])
 
  • Verified answer
    v-bacao-msft Profile Picture
    on at
    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 at
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow