cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joshnystrom
Level 8

Re: Clear DateField and Lookup Column value

Hey @oliverlpgmail, sorry, I never got back to this thread to fill in some of the more recent details:

 

My "BlankPerson" variable from above would be better named "BlankPeople".

BlankPerson should instead look like:

Set(
    BlankPerson,
        {
            Claims: Blank(),
            DisplayName: Blank(),
            Email: Blank(),
            Department: Blank(),
            Picture: Blank(),
            JobTitle: Blank()
        }
);

You have to use "BlankPerson" when your Person/Group field is set to single-select, and "BlankPeople" [with the Table() wrapper] when it is set to multiple-selections.

 

Hope that clears up your error!

Josh

Highlighted
oliverlpgmail
Level: Power Up

Re: Clear DateField and Lookup Column value

Hi Josh,

Thanks for your response. It didn't work for me.

In my case the solution was to activate one of the "Experimental features". "Formula level error management". I found it in a blog by Greg Lindhorst. Then the SubmitForm is able to empty a User field. If I want to use a PATCH then I simply do this:

Patch(
Bokning;
{ID: _selected.ID};
{Person: Blank()}
);;

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 303 members 5,024 guests
Please welcome our newest community members: