Deactivate User using Screen Flow #inSalesforce
Create a screen flow
Add screen with:
display text like "Select the User to Deactivate"
picklist component named User, DataType Text and Choice {!theUsers}
Record Choice Set, type - record
theUsers
Criteria- IsActive equals True
sort - asc, firstname
Configure each choice - Label - Name, text datatype and Choice Value Id
Add Update Element:
update User, Object User (specify conditions...selected)
Criteria - Id equals record.id, Set - IsActive equals False
Connect, Save, Activate
Test it
Comments
Post a Comment