Schedule Auto Freeze of User using Flow #inSalesforce
The daily job will freeze the User as per the 'freeze on' date
Create a date field on User - date type - 'Freeze On'
Create a scheduled triggered flow, scheduled daily from today
Entry Criteria: IsActive equals True and FreezeOn isnull False
DECISION ELEMENT: FreezeOn <= CurrentDate
UPDATE ELEMENT: User Login Object. Criteria- UserId equals Record.Id, Set: isFrozen = True (select - Specify conditions to identify records, and set fields individually)
UPDATE ELEMENT: FreezeOn equals Null (Select - Use the user $Record.Global Variable)
Comments
Post a Comment