Hello!
I have an issue with a SUBSTITUTE formula I am using. I started with the following formula:
SUBSTITUTE(
SUBSTITUTE(
{Email Body} & "",
"{Appraisal Contingency Date}",{Appraisal Contingency Date} & ""),
"{Conditional Approval Due Date}",{Conditional Approval Due Date} & "")
It returns the following:
Appraisal Contingency Expires: 2022-09-20T00:00:00.000Z
Conditional Loan Approval Due: 2022-09-02T00:00:00.000Z
Since the dates were not formatted properly, I updated the formula to the following:
SUBSTITUTE(
SUBSTITUTE(
{Email Body} & "",
"{Appraisal Contingency Date}",DATETIME_FORMAT({Appraisal Contingency Date},"ddd, MM/DD/YY") & ""),
"{Conditional Approval Due Date}",DATETIME_FORMAT({Conditional Approval Due Date},"ddd, MM/DD/YY") & "")
It returns the following:
Appraisal Contingency Expires: Tue, 09/20/22
Conditional Loan Approval Due: Fri, 09/02/22
All seemed well, BUT, when there is a record that does not contain a date, the first formula still works but the second formula returns #ERROR!.
Any help would be greatly appreciated.