This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need Help in VBScript

Former Member
Former Member
' Get Contract End Date

Dim szContractEndDate

szContractEndDate = PropertyValues.SearchForProperty( 1306 ).TypedValue.DisplayValue

Dim szDate

szDate = DateSerial(Year(Now), Month(Now), Day(Now))

Dim szDate2

szDate2 = DateAdd("d",-135,szContractEndDate)

szDate = szDate2



I want to set  szDate2 to be trigger date for email notification
Parents
  • Former Member
    Former Member
    Yes I agree and i'd like to apologize as well for jumping into a conclusion.

    Yeah probably will do the built in one. I just have an additional question.

    On my mfiles it shows (please see image). I'm not sure if i'm doing it correctly. I tested it and put Nov 15,2020 on Contract End Date, if we count back today is 60 days before Contract End Date but i didn't receive any notification.

Reply
  • Former Member
    Former Member
    Yes I agree and i'd like to apologize as well for jumping into a conclusion.

    Yeah probably will do the built in one. I just have an additional question.

    On my mfiles it shows (please see image). I'm not sure if i'm doing it correctly. I tested it and put Nov 15,2020 on Contract End Date, if we count back today is 60 days before Contract End Date but i didn't receive any notification.

Children
No Data