Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Make something happen before deactivate or modify something that is inactive

Posted on by 20

When a post is deactivated I want a date to be modified on this post to todays date. I figured I could do this by either reacting to the fact that the deactivate button is being pressed or to modify the post when it is deactivated. I wonder how to do these things or if you have a better solution that I could take part of.

Regards Eric

Version I am using is Microsoft Dynamics 365 version 1612.


*This post is locked for comments

  • Eric Ahlstroem Profile Picture
    Eric Ahlstroem 20 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Thanks alot! =D

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Hi Eric Ahlstroem,

    Microsoft Dynamics CRM Online is the best version for you to select in that filter.

    You cannot achieve this solution with JavaScript unless you modify the deactivate button with Ribbon Workbench so that it runs custom JavaScript when it is clicked. I do not recommend doing this as a Plug-in is the best approach for solving this problem.

  • Eric Ahlstroem Profile Picture
    Eric Ahlstroem 20 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Can it be done with Javascript btw?

  • Eric Ahlstroem Profile Picture
    Eric Ahlstroem 20 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Thanks! Why I asked about version is because I don't know what to put when I am asking a question in this field.

    1055.Capture.PNG

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Hi Eric Ahlstroem,

    You will not require a custom ribbon button if you build a Plug-in.

    Microsoft Dynamics 365 version 1612 is a newer version than Microsoft Dynamics CRM 2016. A list of Microsoft Dynamics CRM versions is available on this Wikipedia page.

  • Eric Ahlstroem Profile Picture
    Eric Ahlstroem 20 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Thanks for the quick answer, do I have to do a custom ribbon button for this if I only want the plugin to happen when a certain type of record is deactivated?

    Btw, what version is it that I am using if it says "Microsoft Dynamics 365 version 1612". Is this Microsoft Dynamics 2016?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Make something happen before deactivate or modify something that is inactive

    Hi Eric Ahlstroem,

    You can do it by triggering a Plug-in to run when the record is deactivated. The Plug-in will need to set the date field to todays date.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans