You need to sign in to do that
Don't have an account?
Peter Bölke
SOQL Query Campaign.EndDate + n Days
Hello,
i need to return a list of Campaigns which fullfill following requirement
WHERE Campaign.StartDate <= Today AND Campaign.EndDate + 7Days > Today
How can i do this in SOQL?
Thanks
Peter
i need to return a list of Campaigns which fullfill following requirement
WHERE Campaign.StartDate <= Today AND Campaign.EndDate + 7Days > Today
How can i do this in SOQL?
Thanks
Peter
WHERE Campaign.StartDate <= Today AND Campaign.EndDate > LAST_WEEK AND Campaign.EndDate < NEXT_WEEK
Please like and mark it as best answer if you find it positive.
Thanks,
Jolly Birdi
All Answers
Try this below:
WHERE Campaign.StartDate <= Today AND Campaign.EndDate > LAST_WEEK
Please like and mark it as best answer if you find it positive.
Thanks
Jolly Birdi
thanks for your answer.
But this would include any Campain that ends in future. But it should only include Campaigns that had ended Enddate + 7Days. Your suggestion includes EndDate + 8,9,10......
WHERE Campaign.StartDate <= Today AND Campaign.EndDate > LAST_WEEK AND Campaign.EndDate < NEXT_WEEK
Please like and mark it as best answer if you find it positive.
Thanks,
Jolly Birdi