Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Suggested answer
    ShannonCRM Profile Picture
    ShannonCRM 500 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
    Community Member Microsoft Employee 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
    ARIFNIIT 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
    Community Member Microsoft Employee 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
    ARIFNIIT 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
    Deepthi H 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
    Community Member Microsoft Employee 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
    Community Member Microsoft Employee 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
    Alex Fun Wei Jie 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
    David Jennaway 14,063 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans