Forum Discussion

Sal_Sal's avatar
Sal_Sal
Copper Contributor
Sep 09, 2019
Solved

How to remove user from the list if user does not exist?

Hi, I have SharePoint Online, and custom list with People Picker for User Names, we have added users in that list in the past and using that list reading our Scheduler to send email notifications. N...
  • Vikram_Samal's avatar
    Sep 09, 2019

    Sal_Sal Hi  there. You want to remove users in a list column and these users gets notification from the scheduler. One approach could be, you can modify your scheduler code which will check the users first and then if they see the requested user is not valid anymore can be removed from the list item and then can be replaced with some generic account or emptied which will let you know the users who are invalid.

     

    Second approach is have complete separate scheduler which runs less often dues this type of clean up job from multiple lists of libraries. 

     

    please let me know if this helps.

Resources