CASE WHEN {custrecord_md_pg_payment_1_due_date} - ...
# ask-stanley-ai
a
CASE WHEN {custrecord_md_pg_payment_1_due_date} - TO_DATE({today}) > 0 THEN 1 ELSE 0END Should this be a formula text or a formula date field? custrecord field is a date field
c
AI generated answer (using internal Slack threads):
The formula you provided:
CASE WHEN {custrecord_md_pg_payment_1_due_date} - TO_DATE({today}) > 0 THEN 1 ELSE 0 END
should be a formula numeric field. This is because the result of the formula is either 1 or 0, which are numeric values. The formula is checking if the
custrecord_md_pg_payment_1_due_date
is greater than today's date. If it is, it returns 1, otherwise it returns 0. This is a numeric comparison, hence the result should be stored in a numeric field. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84202534
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837418199
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837302685
Please provide your feedback on this answer.