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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Make something happen before deactivate or modify something that is inactive

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    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.

  • Eric Ahlstroem Profile Picture
    20 on at

    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
    1,027 Moderator on at

    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
    20 on at

    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

  • Eric Ahlstroem Profile Picture
    20 on at

    Can it be done with Javascript btw?

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    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
    20 on at

    Thanks alot! =D

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans