last n days

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I want to only render a button if the createddate is in the last 3 days.  
Here is how I have it set up.

If I have >= it never shows regardless of the CreatedDate
If I have <= it always shows regardless of the CreatedDate
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb
Do you have CreatedDate in your model?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Bill,

You may also want to try something like = or 'in' ... I believe LAST N DAYS is a salesforce date range, not a specific date.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Updating old tickets before the end of the year.  Unfortunately conditional rendering with date literals does not work.  Use a formula field that returns true or false and do your conditional rendering there.