cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ell1990
Helper I
Helper I

Annotation in PowerApps

Is it possible for each user to add their own annotations to a PowerApp, that only they can see?

 

Thanks

Emma

5 REPLIES 5
WarrenBelz
Super User III
Super User III

Hi @ell1990 

Assuming the user is the creator of the record or their name is stored on it somewhere, then yes.

For created by, you can set the Visible property of the notes to

ThisItem.'Created By'.DisplayName = User().FullName

This returns a true or false result and the Visible property will be the same as this.

If they are in the record somewhere (I will call the field UserOwning), much the same principle

ThisItem.UserOwning = User<>.FullName

There should not be delegation issues with this as with other User().FullName filters. Just make sure you do not have two users with the same name.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

eka24
Super User III
Super User III

If you want the user to see only his/her records, you can filter with User().FullName.

Explaining you case further would help

Hi @WarrenBelz @ell1990 
Great explanation from Warren 🙂
Would only suggest one small enhancement if there is more action to use the User context = User() function it is a good idea to save it to variable like: 

Set(varUser,User())

OnStart of the app as with that we will get the access to record = User properties everywhere in the App with single CALL.


Where using User().Property will always call the function when it is used = makes the app perform slower.|
Hope this is helpful.
Regards
Dawid

Thanks @365CornerDawid ,

I actually tested the code on a 10,000 item list and (to my surprise) did not get a delegation warning (and received all my created records in a gallery), hence my note at the bottom.

However I always set both User().FullName and User().Email as global variables on every app at OnStart

@WarrenBelz I was more thinking about the number of the calls of the User() function than delegation itself. With global variable it is single call and see it as something easier to manage.

 

It is great to know that for such high level of items it is working fine - think MS team is constantly working to increase performance but as Makers we also should do our part:P

Regards
Dawid

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (18,651)