Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

create a flag if there is difference between two dates

(0) ShareShare
ReportReport
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,745 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,745 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,745 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans