Skip to main content

script to compare a date field with current date

Comments

1 comment

  • Leeana Ramos
    Mariya commented  ·   

    Hi there,

    Thank you for reaching out! As Application scripts are outside of the scope of general Support, we would not be able to assist with writing specific script logic, that said, generally, you could create an After Insert or an After Update Application Script, and then compare the Date field mentioned to the "Updated" date field of the record through an "if" statement. If the condition is met, you could then stamp a value using currentValues["Single Line field"]="Specified text" general syntax. I am also linking our TrackVia Developer page on Application Scripts below, specifically the "Working with Dates" function library, and stamping values into specific fields:

    https://developer.trackvia.com/application-scripts/appscript-library/
    https://developer.trackvia.com/application-scripts/appscript-reference/

    If you have any additional questions, please do not hesitate to reach out to support@trackvia.com or call in to our Support line directly at 1 (800) 673 3302, we are happy to assist! Our Hours of Operation are Monday through Friday, 7:00 AM - 6:00 PM MST.

    Kind Regards,
    Mariya

    0

Please sign in to leave a comment.

Powered by Zendesk