Excluding agreements with a perpetual term from scripts
We have a script that automatically calculates the expiration date. However, we now have a business need to set the perpetual flag. This is causing the script to error out. Please see the script attached. Any suggestions of how to check for and exclude if the perpetual flag is set would be welcome. Thank you.