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)

Trigger a plugin if Task is Mark as completed

(0) ShareShare
ReportReport
Posted on by 445

How to trigger a plugin when a task is marked as completed.

1. In plugin registration which message should I choose?

2. In plugin code how can I check if the task is marked as completed then only execute the code?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Trigger a plugin if Task is Mark as completed

    Hi ,

    If you only change the status reason you have to use Update Message and PostImage.From post image you will get the status reason "Completed" and depending on the status reason You can implement your plugin logic.

  • Elangamban Profile Picture
    445 on at
    RE: Trigger a plugin if Task is Mark as completed

    Thanks for the suggestion. I'll try the same.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at
    RE: Trigger a plugin if Task is Mark as completed

    Hi Elangamban,

    Create a plugin for the task entity on the Update message. In the plugin you will need to retrieve the value of the status field. If the value of the status field is "Completed" then continue the execution of your plugin, otherwise end the plugin execution.

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
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans