Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

create a flag if there is difference between two dates

Posted on by 335

Hi ,

I have a requirement where I want to flag whenever there is a difference between two dates i.e. Promised Receipt Date and expected receipt date in purchase line Table.

If I need to create a cue on the Role center, How can I compare two dates with Flowfield?

In case I want to I want give an error in Red Line just like there is one  for "Overdue sales Items"on Role centre.

Thanks in Advance

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: create a flag if there is difference between two dates

    Apply the filter on the Record and then use Rec. Count or you can loop through records and increment the integer.

  • Rupali  Profile Picture
    Rupali 335 on at
    RE: create a flag if there is difference between two dates

    I need to get the count of items where Promised Rec Date is Less than Expected receipt date in Purchase line table, How can I do that with code?

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: create a flag if there is difference between two dates

    I am not sure if I understand, you just do a regular comparison of the fields like If Date1 > Date2 ....

  • Rupali  Profile Picture
    Rupali 335 on at
    RE: create a flag if there is difference between two dates

    How can we compare two dates in a table?

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: create a flag if there is difference between two dates

    Unfortunately, you cannot do this with flowfield you need to calculate that using code and set the flag.

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,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans