Skip to main content

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 

#flow
2 respostas
  1. 24 de fev. de 2022, 16:36

    Here are my thoughts: 

     

    1. This should be a Scheduled-triggered Flow, that can fire at specified time daily 
    2. Use Custom metadata Types to store profile names not custom label
    3. Don't put anything in the entry criteria (as it is not possible to refer Custom Label or CMTD in the entry criteria 
    4. Use Decision element to check profile using Custom metadata Type
    5. Write the logic to find last login date
    6. Check if it it greater than X days 
    7. Use Update element to update the record

    Let me know how it goes