last n days

  • 1
  • Question
  • Updated 4 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

  • 8,990 Points 5k badge 2x thumb

Posted 5 years ago

  • 1
Photo of Tami Lust

Tami Lust

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

Matt Sones, Champion

  • 33,040 Points 20k badge 2x thumb

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

  • 45,308 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.