EP - 19 | DEACTIVATE USERS USING LAST LOGIN DATE | LIGHTNING FLOW SERIES

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 35

  • @SathishaYadav-b5q
    @SathishaYadav-b5q ปีที่แล้ว

    im getting error while run the flow like unhandled flow fault occurred in this flow and this at the time update record. can u pls suggest me on how to resolve this

  • @ramesha5243
    @ramesha5243 3 หลายเดือนก่อน

    Hi, how to deactivate partner user for the same conditions please?

  • @ankitkumar2011
    @ankitkumar2011 5 หลายเดือนก่อน

    Hi, What if the requirement is following:
    User auto-deactivation to be done only if user type is 'Standard'
    - EXCLUDE all such users who have createdDate in last 90 days from flow scheduled run date-time (daily midnight)
    - Exclude user Ids among those (userIds = abc, cde, efg, hij)
    - auto deactivate if lastlogindate is before last 90 days from flow run date

  • @anishajuneja1955
    @anishajuneja1955 2 ปีที่แล้ว

    Thanks for the video, really helped me in my current project- exactly what I was looking for.

    • @SFDCGirl
      @SFDCGirl  2 ปีที่แล้ว

      Hey Anisha, glad to hear that it helped you. 😊

  • @animatedvinesofmk2774
    @animatedvinesofmk2774 2 ปีที่แล้ว

    mam how could i get the job in trained salesforce fresher

    • @SFDCGirl
      @SFDCGirl  2 ปีที่แล้ว

      Try searching for recruiters on LinkedIn.

  • @siaqingmotivation4253
    @siaqingmotivation4253 ปีที่แล้ว

    Is it possible with this flow to trigger an email to user's manager using the last login date?
    I want an email to be sent to the user manager whenever last login date exceed 15 days
    Any clues?

  • @mohsinamarali786
    @mohsinamarali786 ปีที่แล้ว

    Hello I have created the flow, but I am getting error, where it is trying to disable an automated user.
    I have added some conditions in the Decision where I have added in the below
    Ignore users if:
    {!$Record.Profile.Name} contains API , ADministrator or
    {!$Record.Id} contains the automated user id.
    However these conditions do not work.
    Can you please advise?

  • @mohsinamarali786
    @mohsinamarali786 ปีที่แล้ว

    I have created the flow but I will like to add an email to the users that are being disbaled can you please advise me?

    • @SFDCGirl
      @SFDCGirl  ปีที่แล้ว

      You can simply add an email alert in flow to send users email.
      Or may be instead of sending them email about their account being disabled, you could send them a reminder few days before about their inactivity can cause the account disability.
      Then if they haven't still logged in, you can disable the user.

  • @haribabuk5162
    @haribabuk5162 11 หลายเดือนก่อน

    can we use assignment for updation purpose?

    • @SFDCGirl
      @SFDCGirl  10 หลายเดือนก่อน

      Hey!
      If you are using before-trigger flow then you can directly assign the values using assignment element and the flow will update the value for $Record.
      If you are using any other flow type then assignment is used for assigning values but to update it and run a DML operation you have to add an Update Record Element.

    • @ankitkumar2011
      @ankitkumar2011 5 หลายเดือนก่อน

      @@SFDCGirl Hi, What if the requirement is following:
      User auto-deactivation to be done only if user type is 'Standard'
      - EXCLUDE all such users who have createdDate in last 90 days from flow scheduled run date-time (daily midnight)
      - Exclude user Ids among those (userIds = abc, cde, efg, hij)
      - auto deactivate if lastlogindate is before last 90 days from flow run date

  • @sreenivaspakalapati8123
    @sreenivaspakalapati8123 2 ปีที่แล้ว

    Nice scenario, subscribed to the channel. Please post more videos on flows. Keep it going....

  • @Ummvlog
    @Ummvlog 2 ปีที่แล้ว

    Amazing! Keep up the videos!

  • @arvinzatulovsky6955
    @arvinzatulovsky6955 ปีที่แล้ว

    Can you do a video on freezing users from a screen flow?

  • @Snippetsoflife-i6h
    @Snippetsoflife-i6h ปีที่แล้ว

    Can we do this using lwc

    • @SFDCGirl
      @SFDCGirl  ปีที่แล้ว

      Yes you can do that.

  • @uditsharma5943
    @uditsharma5943 2 ปีที่แล้ว

    Not getting Note field in assignment element

    • @SFDCGirl
      @SFDCGirl  2 ปีที่แล้ว

      Please check if your field permission or visibility is causing this.

  • @kirtipatel3700
    @kirtipatel3700 ปีที่แล้ว

    How can I add assignment rule to check if user is not admin

    • @gamaai
      @gamaai ปีที่แล้ว

      IsIntegrationUser == False
      Profile != AdminProfile.
      In your org can be different but use the logic above..

    • @ullasss5753
      @ullasss5753 ปีที่แล้ว

      you can add profilid as filter in start button

  • @udayshettay8955
    @udayshettay8955 ปีที่แล้ว

    Getting an error on platform integration user

    • @gamaai
      @gamaai ปีที่แล้ว

      IsIntegrationUser == False
      Put this condition, should work.

    • @mohsinamarali786
      @mohsinamarali786 ปีที่แล้ว

      I am getting the same error.
      I have added another path in the decision element with the below:
      $record, profile Id, name
      But it is still not working

  • @odwaskoti8423
    @odwaskoti8423 ปีที่แล้ว

    Hi, this works but only deactivates one user at a time. How would you make it deactivate multiple users?

    • @SFDCGirl
      @SFDCGirl  ปีที่แล้ว

      Hey Odwa Skoti, Schedule trigger flow works on batches so this should work and deactivates all users who haven't been active from last 90 days.
      Please check your flow and the last login of all the users as well.

    • @odwaskoti8423
      @odwaskoti8423 ปีที่แล้ว

      @@SFDCGirl Thanks for the reply. I have a sandbox where more than 100 users have not logged in in 90 days. The flow is actually only deactivating the first user and stops running.

    • @SFDCGirl
      @SFDCGirl  ปีที่แล้ว +1

      Hey, I will just try it out with multiple users and get back to you.

    • @roshanambadkar3021
      @roshanambadkar3021 ปีที่แล้ว

      I also have a same scenario.
      Additionally I need to send an reminder email after 30 days and second reminder after 60 days then deactivate after 90 days.
      Can you help me in this?

    • @mht17m2k
      @mht17m2k ปีที่แล้ว

      Hi Roshan I have the same requirement can you please help me out to achieve this

  • @ramesha5243
    @ramesha5243 ปีที่แล้ว

    Please create all admin videos, subscribed to the channel and please post more videos on flows advance admin vidoes ,Keep it going....

    • @SFDCGirl
      @SFDCGirl  ปีที่แล้ว +1

      Thank you ramesh. Stay connected