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 Apps / Patch blank / empty va...
Power Apps
Answered

Patch blank / empty value from combobox people picker to a Sharepoint List

(0) ShareShare
ReportReport
Posted on by 17

So I have a Patch button that will patch several fields to a Sharepoint list. In the sharepoint list the person column is not required but the patch function won't work at all if the combobox people picker is left empty. The formula to patch this column is the one bellow (which works fine providing someone was selected):

 

;

Agente:{ //name of the column in sharepoint list
Claims: Concatenate(
"i:0#.f|membership|";
Agente.Selected.Mail // Person email
);
Department: "";
DisplayName: Agente.Selected.DisplayName; // Agente here is the combobox name
Email: Agente.Selected.Mail; // Person email
JobTitle: "";
Picture: ""
};

 

PS: don't mind the semicolons, for some reason it's the way to work in brazilian portuguese Powerapps.

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @lsmael 

    Turn on the Formula Level Error management feature in your app.  Otherwise, you will not be able to write a blank back to the satasource.

     

    I hope this is helpful for you.

  • CU27081801-0 Profile Picture
    17 on at

    I have tried this and so far no good.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @lsmael 
    Well, you're going to have to submit a blank.  The formula you provided will not.

    Your formula should be:

    ...
    Agente:
     If(IsBlank(Agente.Selected.Mail); Blank();
     { 
     Claims: "i:0#.f|membership|" & Lower(Agente.Selected.Mail);
     Department: "";
     DisplayName: Agente.Selected.DisplayName; 
     Email: Agente.Selected.Mail; 
     JobTitle: "";
     Picture: ""
     }
     );
    
    
    ...
  • CU27081801-0 Profile Picture
    17 on at

    It worked like a charm. Thank you very much!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard