Need to revoke requestor's access if the user do not have active record in custom table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 08:26 AM
Hello,
I need help to write a schedule job which runs once in a week for the following condition:
If NO requests created linked as "Requested by" or "Requested for": remove him/her from the group "XYZ_REQUESTORS" after 2 weeks since adding to the group.
I wrote following script in order to meet above condition:
Please suggest corrections required in the above code to meet the requirement.
Thanks.
Please help- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 12:03 PM
Hi @Community Alums,
Have you tried to accomplish this through Flow Designer? You should be able to trigger it once per day and look up the Group Members associated to a specific Group and then query the Request or Request items Table looking for the Group Members in either field.
Once the query is done, you can add an If statement where, if the Group Member hasn't placed a Request in XX number of days, then delete their Group Membership.
Hope this helps!
-Josh Pirozzi