Hi all - I'm trying to write a (date) formula to s...
# general
b
Hi all - I'm trying to write a (date) formula to set the value based on whether or not another date field has a value. But I'm getting invalid expression. This is the full formula that I tried --
Copy code
CASE WHEN {custcol_agency_mf_flight_end_date} is NULL THEN {custcol_agency_mf_flight_start_date} + 364 else {custcol_agency_mf_flight_end_date}
I broke it down to this to see if I could get part of it working -- and it's not working either --
Copy code
CASE WHEN {custcol_agency_mf_flight_end_date} is NULL THEN {custcol_agency_mf_flight_start_date}
any help is appreciated!
j
Give this a shot: NVL({custcol_agency_mf_flight_end_date}, {custcol_agency_mf_flight_start_date} + 364)
b
OMG that worked - thank you!!
🙌 1
j
@Betsy Barefoot Secret Sauce:
image.png
b
Wow! I'm probably one of very few people who hasn't tried Chat GPT - I need to get on that!
j
That's why I posted it here haha, do not underestimate the things it can help with, has a good amount of accurate NetSuite knowledge as well. Today I just launched a script to automate part of payroll using ChatGPT haha.
b
that's awesome