function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Huy NguyenHuy Nguyen 

Check 2 field(date time) in object <=1

Hi all,

I have 2 field in SOSL . How we check substract from to_date and from_date <=1 days
Swati GSwati G
We can't compare two fields directly in query. You can create formula field which will store substraction of to_date and from_date and then use that in where clause.