Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Compare two fields on email template
Hi,
I want to compare two fields on the email template and put it under the IF function.
I created a custom field type integer number called "custrecord_today_date" that calculates the difference between the warranty end date field and today's date. The formula for this custom field is:
"ROUND(({custrecord_warranty_end_date}-{today}),0)".
For example, when I put {custrecord_warranty_end_date}= 12/06/2023, I get on this field the result "-2".
Now I want to create if on the email template to check if the custom field I created is less than 0 or greater than 0.
I tried to use the below syntax on the email template, but I get the below error when trying to save-