web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

'Record Status Changes' trigger in workflow on user entity disabled

(0) ShareShare
ReportReport
Posted on by

I am working on workflow, When User is disabled from Dynamics 365 then an email notification should be sent to the system administrators. When User entity is selected in the workflow then 'Record Status Changes' trigger is showing as disabled as shown in the screenshot below. Is there any way we can enable this trigger for user entity.

34131507.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ShannonCRM Profile Picture
    502 on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    We have also found that plugins do not trigger on change of "isDisabled" field on User.  We had to create a second User Status field that we populate with a daily SSIS job that pulls the isDisabled for all users, compares to their current User Status custom field and updates if different. Very inconvenient. Why Microsoft cannot let us trigger workflows and plugins on this field, I don't know.

    The good news is that you CAN trigger a PowerAutomate Flow with the CDS connector.

    It's a bit tricky because while the front-end "Status" field options are Enabled (0) and Disabled (1), in the back end it is returned as "true" if disabled and "false" if enabled.   I did get mine to work in the end.

    I hope this helps anyone running into this issue in 2020.

    -Shannon.

  • Community Member Profile Picture
    on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    Hello Aarif,

    We are disabling a user by removing license of Office 365 Admin portal.

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    Can you explain the steps to disable a user?

  • Community Member Profile Picture
    on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    Hello Arif,

    We have created a plugin on User entity but it is not firing in CRM.

    I have asked the question on two communities.

    1. community.dynamics.com/.../310355

    2. stackoverflow.com/.../54690270

    Please help me to resolve the same.

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    For user Entity status field is not applicable. when you disable user it will update IsDisable field.

    Create and plugin on update of systemuser and check if IsDisable field, if(IsDisable==1) then send email. you can use Asynch Plugin.

  • Deepthi H Profile Picture
    230 on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    I  have seen IsDisabled field in database but no sure why it is not available in Workflow, Advanced Find. You can use this field in plugin to check if the user is Disabled. It is a Boolean field where 1 represents disabled user.

    If some know why this field is not visible in advanced find even though searchable is Yes. Let me know.

  • Community Member Profile Picture
    on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    Can we do this through Microsoft Flow as we can see status field from there.

  • Community Member Profile Picture
    on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    Thanks for quick reply. Yes there is no Status field showing for User entity when we click on Record fields change. Can this be done through Microsoft Flow? Is there any plug in available for this? 

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,626 on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    Hi,

    Workflow does not support status changed for User entity regardless of background or real time workflow. Status field is not available in Record field change too, so use plugin to achieve this.

  • David Jennaway Profile Picture
    14,065 on at
    RE: 'Record Status Changes' trigger in workflow on user entity disabled

    You have 2 options:

    1. Change this to a background (asynchronous) workflow. Status change, delete and assign triggers are only available for asynchronous workflows

    2. I'm not sure if this works, but you should be able to trigger on an update of the statecode and statuscode fields, as these are changed when the status changes

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans