Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

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

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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans