Using Calcdate

CALCDATE should only be used with DateFormula variables. Alternatively the string should be enclosed using the <> symbols.

Bad code

IF ReservEntry."Expected Receipt Date" >
    CALCDATE('-' + FORMAT("Dampener (Time)") + FirstDate)
THEN

Good code

IF ReservEntry."Expected Receipt Date" >  
    CALCDATE('<-' + FORMAT("Dampener (Time)") + FirstDate + '>')  
THEN

Last modified August 11, 2025: Merge pull request #264 from microsoft/jeremy-siteops (f82dfd0) by Jeremy Vyska