pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.7k stars 822 forks source link

added multi-person-favorite sample #691

Closed AlexanderHenkel closed 11 months ago

AlexanderHenkel commented 11 months ago
Q A
Bug fix? no
New sample? yes
Related issues?

What's in this Pull Request?

This sample let a user add/remove a list item as a favorite, by adding the user name to a multi-person column.

tecchan1107 commented 11 months ago

I have done the merge! Please check out the following link and let me know if you have any questions. (I made some minor adjustments when merging.) https://github.com/pnp/List-Formatting/tree/master/column-samples/multi-person-favorite

Thank you so much for the awesome sample🤩🤩✨

tecchan1107 commented 11 months ago

If you are interested, please register for the following program. When you register, you will get a digital badge! M365 Platform & Power Platform Community Recognition Program

※Even if you register, it will not be distributed immediately. It will take some time before it is distributed.

BusinessRefinery commented 2 months ago

Hello, firstly thanks for putting this together.

I've been using this for a while now. We've just come across an issue where if a staff leaves the organisation (now unlicensed) who has favourited the list item (assume the same applies to any people column) then it errors to add any additional favourites for other users.

Error states - "We couldn't find an exact match". When you remove the former staff member it resolves the issue. So I'm going to have to write a script to bulk remove people from the column.

Have you come across this issue?

image

tecchan1107 commented 2 months ago

Hi @BusinessRefinery . I will try to verify if I can reproduce this on my end. Also, I will try to see if I can use PowerShell to bulk delete specified users.

tecchan1107 commented 2 months ago

Hi @BusinessRefinery .

Sorry for the delay. I was able to reproduce the same phenomenon in my environment. I would like to inform you that I have reported this phenomenon to Microsoft. https://github.com/SharePoint/sp-dev-docs/issues/9670

BusinessRefinery commented 2 months ago

Thanks @tecchan1107

Glad it isn't just me. Hope MS resolve that one.