cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

oliverlpgmail
Level: Powered On

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()}
);;

techneaz
Level: Powered On

Re: Clear DateField and Lookup Column value

Hi Oliver, 

 

I was trying to clear the person field and the above solutions with patching with Blank() values to user attributes din't work for me.

Just by activating the experimental feature "Formula Level error management" as you suggested, both the below approaches of clearing the person field are working

1. Form submit with a cleared person choice field

2. Patch (Source,Item,{PersonColumn:Blank()})

 

Thanks a lot!

Cheers!

AndrewBentley
Level: Powered On

Re: Clear DateField and Lookup Column value

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,871)