web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Creating Null values in a SharePoint list from A MS Forms submission

(0) ShareShare
ReportReport
Posted on by 1,122
Hi,

I'm looking at creating a 'null' / empty value in a SharePoint list if a question in an MS Form is either Blank or the name entered does not match a name in our company

I have this as the function I have in Create Item - Results

if(empty(outputs('Get_user_profile_(V2)')?['body/displayName']),null, outputs('Get_user_profile_(V2)')?['body/displayName'])


This is my Flow



The issue is when I test it and add a name that I know it not in the company it adds my name to the column in the SharePoint list, which is a Person or Group  I am the one creating the Form so  I assume it's picking my details up from Get_User_Profile.

I'm unable to change the column type as records have been created, successfully and are being used in the business...



Can anyone provide a solution as at the moment, if a wrong name is entered the Flow fails 



Regards

Chris
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,271 Most Valuable Professional on at
    Creating Null values in a SharePoint list from A MS Forms submission
    To set a Person or Group field to null requires the use of an HTTP rest call. It can't be done with a Create Item action.  Here's a walkthorugh that shows the code required.
     
     

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard