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
  • It wouldn't add any work as far as I understand your situation, three notification rules are needed (these are examples, notification filters might be different in your vault):

    Class = Contract AND DaysTo(Contract end date) - this notification would dispatch for any contract 60 days before the contract end date
    Class = Contract AND DaysTo(Contract end date) - this notification would dispatch for any contract 45 days before the contract end date
    Class = Contract AND DaysTo(Contract end date) - this notification would dispatch for any contract 30 days before the contract end date
Reply
  • It wouldn't add any work as far as I understand your situation, three notification rules are needed (these are examples, notification filters might be different in your vault):

    Class = Contract AND DaysTo(Contract end date) - this notification would dispatch for any contract 60 days before the contract end date
    Class = Contract AND DaysTo(Contract end date) - this notification would dispatch for any contract 45 days before the contract end date
    Class = Contract AND DaysTo(Contract end date) - this notification would dispatch for any contract 30 days before the contract end date
Children
No Data