cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
octaking
Level: Powered On

get the owner of an approval

I'm trying to patch the owner of an approval but don't get it

Captura de Pantalla 2019-08-17 a la(s) 20.29.00.png

1 ACCEPTED SOLUTION

Accepted Solutions
shailendra74
Level 10

Re: get the owner of an approval

Hi @octaking 

 

What is the value in Owner.  Are you expecting it to be the logged in user. If so it should be User().Email

 

Thanks.

View solution in original post

5 REPLIES 5
shailendra74
Level 10

Re: get the owner of an approval

Hi @octaking 

 

What is the value in Owner.  Are you expecting it to be the logged in user. If so it should be User().Email

 

Thanks.

View solution in original post

octaking
Level: Powered On

Re: get the owner of an approval

Hi @shailendra74  

What I want to achieve is to be able to patch the person who approved an request,

but he tells me he expects polymorphic value

 

Captura de Pantalla 2019-08-18 a la(s) 09.13.36.png

 

shailendra74
Level 10

Re: get the owner of an approval

Hi @octaking 

 

what does Item_Confirm hold.  The value expexted should be a record.

 

E.g. Patch(Approvals, First(Filter(Approvals; ID = value)), {.... }) // ID or any unique column which can represent the record

 

Also Filter function expects the condition

 

Eg. Filter(Approvals; 'Modified By'=User().Email)

 

Thanks.

 

Thanks.

octaking
Level: Powered On

Re: get the owner of an approval

HI @shailendra74 

 

yes the Item_Confirm It has the value of the item is the same as ThisItem I use this because I have a confirmation popup

 

 

shailendra74
Level 10

Re: get the owner of an approval

Hi @octaking 

 

Is Owner a person or group field?

 

Also in previous response I realised that 'Modified By' has properties, you need to consider one of them like 'Modified By'.Email.

 

Thanks.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

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 Solution Authors
Top Kudoed Authors
Users online (5,286)