velocity script help - future date | Community
Skip to main content
Stephen_Moore
New Participant
June 4, 2021
Solved

velocity script help - future date

  • June 4, 2021
  • 1 reply
  • 1520 views

Hi,

I have a nurturing campaign that targets Contacts with open Opportunities.

Since these people can have multiple open Opportunities with different stages, products, and close dates, I'm trying to use velocity script to display the correct Opportunity.

I've managed to write the script so that it displays the correct Product and Stage - but I can't figure out how to write the Closed Date "in future" 6 months.

Does anyone have a sample I can look at?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

You should read this blog post — please read the whole intro, it's vitally important — as there's related code under 'PROMO EXPIRES 7 DAYS FROM TODAY (WHENEVER THAT IS)'. You use Calendar.add().

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
June 4, 2021

You should read this blog post — please read the whole intro, it's vitally important — as there's related code under 'PROMO EXPIRES 7 DAYS FROM TODAY (WHENEVER THAT IS)'. You use Calendar.add().