Hello Everyone,
I am trying to build a flow to deactivate the user when the login as is greather than X days.
But I have many condition to consider such as all community Users, technical users and few users CEO...
For that, I created a custom label to store profiles and another for users.
But I couldn't figure out how to put these custom labels in condition .
HOw I can to add criteria ?
Thanks
Delphine
@Lightning Flow Discussions
@Salesforce Automation
#flow2 Antworten
Here are my thoughts:
- This should be a Scheduled-triggered Flow, that can fire at specified time daily
- Use Custom metadata Types to store profile names not custom label
- Don't put anything in the entry criteria (as it is not possible to refer Custom Label or CMTD in the entry criteria
- Use Decision element to check profile using Custom metadata Type
- Write the logic to find last login date
- Check if it it greater than X days
- Use Update element to update the record
Let me know how it goes