Dear Team,
I am reaching out regarding a script I have implemented in Zoho FSM to automate the calculation of the End of Service date based on the End of Sale date in the Service and Parts module.
Overview of the script:
Fetches the End_of_Sale__C and End_of_Service__C fields from the Service and Parts record.
Checks if the End_of_Sale__C date is valid.
Calculates a new End_of_Service__C date by adding 5 years to the End of Sale date.
Updates the End_of_Service__C field only if it is empty or different from the calculated date.
Despite executing successfully, the script does not update the End_of_Service__C field as expected. I would greatly appreciate guidance on why the update might not be taking effect and any recommendations to ensure the field updates correctly.
Script:
Thank you for your assistance.
Best regards,
Chethiya