Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Trigger Plugin on Date

Posted on by 240

I have a Date field on Account Entity. ExpiryDate. This expiry date is set manually on the account.

I want to trigger a plugin/workflow if expiry date is today and update some fields.

Any suggestions on how to do this?

  • Suggested answer
    Anks27 Profile Picture
    Anks27 1,083 on at
    RE: Trigger Plugin on Date

    Hello,

    You can accomplish this by using System workflow and a custom workflow (C# code).

    Custom Workflow

    Create an on-demand workflow, In your workflow add a step to check if  ExpiryDate equals today’s date. If this condition is true then trigger the custom workflow to update the fields that you need to.

    System Workflow

    Put Wait until condition in Workflow, trigger is on record created.

    You can include a Process Timeout in a workflow by selecting Add Step > Wait Condition, 

    Process Timeout Equals Account."ExpirtyDate", if expiry date is 31st December 2020 then workflow will wait till 31st Dec and that day it will move for further steps, after that you can put update step which will update fields.

    pastedimage1606310744564v1.jpeg

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Trigger Plugin on Date

    Hello,

    If the field stays unchanged - it can't trigger the plugin or workflow.

    What you can use in your scenario is the waiting workflow - blog.clickdimensions.com/.../

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