velocity script help - future date | Community
Skip to main content
Stephen_Moore
Level 2
Jun 4, 2021 2:12 PM UTC
Solved

velocity script help - future date

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 4, 2021 4:07 PM UTC

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
Level 10
Jun 4, 2021 4:07 PM UTC

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().

Translate