AL icon indicating copy to clipboard operation
AL copied to clipboard

Conditional in a Query

Open DavidRRA opened this issue 6 years ago • 1 comments

Hi Experts

I am having issues trying to create a conditional inside a query. I have a date column ("LastModifiedDate"), which is sometimes null, in the case it is null I want to get the following date “01/01/1900” Could you please help me ?

query 70639802 "Sales. Inv. Line" { QueryType = Normal;

elements
{
    dataitem(SalesInvoiceLine; "Sales Invoice Line")
    {
        column(DocumentNo; "Document No.")
        {
        }
        column(LineNo; "Line No.")
        {
        }
        column(AmountIncludingVAT; "Amount Including VAT")
        {
        }
        column(LastModifiedDate; "LastModifiedDate")

{ }

      }
}

DavidRRA avatar Oct 29 '20 18:10 DavidRRA

This repository no longer handles general questions and is only dedicated to bug reports and feature suggestions for the latest preview version of the AL compiler and developer tools.

To get help for your question please use one of the following resources: Business Central Community mibuso forum Dynamics User Group

PooyaKharamesh avatar Oct 30 '20 07:10 PooyaKharamesh