Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Update the Date Field if it eaquals to Today's Date

(0) ShareShare
ReportReport
Posted on by 10

Hello Dear Dynamics Commutiny,

I wanted to setup a workflow to update/add 1 year to an Account Date field IF it is eaquals to Today's Date. Example:

I have:

  1. Support Exp Date = 1/28/2021 (simple date field)
  2. Auto-Renewal = Yes (option set)
  3. Today's Date = 1/28/2021 (calculated date field)

I need to create a workflow that will check the following conditions:

  1. Is Auto-Renewal = Yes AND Support Exp Date = Today's Date?

Then I need to update Support Exp Date to:

  1. Support Exp Date to be updated to 1/28/2022 (1/28/2021 + 1 year)

I've created a workflow, but it doesn't run and update my field (attached a screenshot). 

Could you please help me to find what i did wrong?

Workflow:

pastedimage1611877787211v1.png

IF Condition:

pastedimage1611877846748v2.png

Update Properties:

pastedimage1611877933438v3.png

Thank you in advance!

  • PabloCRP Profile Picture
    PabloCRP 1,086 on at
    RE: Update the Date Field if it eaquals to Today's Date

    Is this WF trigger by some kind of integration or it's called Ondemand?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Update the Date Field if it eaquals to Today's Date

    Hi Sabina,

    Firstly, you can go Settings > System Job to check the workflow which step meet error.

    pastedimage1611884727267v3.png

    And you need ensure the workflow has been trigged, which means that you need set correct ‘Start When’ section in the workflow.

    Then you need change ‘scope’ of the workflow, I noticed that the scope screenshot shown is ‘User’.

    pastedimage1611884657197v2.png

    In Dynamics 365, scoping acts just like security access levels granted to users and it works by allowing constraints on the records to be affected by the process. Simply put, workflow scope defines the level of records that a workflow can have an effect on.

    The User scope means that workflow will run only on the records owned by the same user as the workflow user, so You have to change it while creating a workflow to allow the workflow to work for someone else.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans