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

 

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (20,657)