web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

In a ComputedColumn how I can validate a Date field empty value?

(0) ShareShare
ReportReport
Posted on by 578

I have a computed column, i like validate a date field, if is empty do somethiing...

5657.cc.png

It does not allow me to debug in computedcolumn

Can you help me.

Thanks

*This post is locked for comments

I have the same question (0)
  • ismaelivan Profile Picture
    578 on at

    Sorry, I try to validate duedateStr1, not duedateStr

  • Suggested answer
    Srini Ramidi Profile Picture
    2 on at

    Hello,

    You can use dateNull() to validate if the Date field has value.

       if(table.Datefield==dateNull())

       {

       }

  • Verified answer
    ismaelivan Profile Picture
    578 on at

    Thanks, the solution was

       dueDays = SysComputedColumn::if("CHARINDEX('1900'," + duedateStr1 + ") = 0",

       SysComputedColumn::getDateDiff(duedateStr1,duedateStr,SysComputedColumnDatePart::Day),

       SysComputedColumn::getDateDiff(duedateStr2,duedateStr,SysComputedColumnDatePart::Day));

    Thank very much!!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans