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 Platform Community / Forums / Power Automate / Creating Null values i...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 1,144
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
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,678 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard