Salesforce Fact #691 | Bind variable with date literals in SOQL
Bind variables cannot be used in SOQL with date literals like 'LAST_N_DAYS' in static context. So as a workaround, we can calculate the date value and then use the same in the SOQL.
Attached is the screenshot.
Comments
Post a Comment