Hi, I'm working on a workflow that would calculate Expected Receipt Date as Ship Date (custom line field) + 14 days. I created a single state workflow with After Field Edit triggered action using a formula to establish the value. If I simply put {line.custcol_line_shipdate} in the formula field, the value is being copied 1:1 as soon as enter the date - perfect. However, I can't seem to get any calculations working. So far I tried the following:
{line.custcol_line_shipdate} + 14
{line.custcol_line_shipdate} + INTERVAL '14' DAY
to_date({line.custcol_line_shipdate} + INTERVAL '14' DAY)
DateAdd({line.custcol_line_shipdate}, "2", 14)
DATEADD('day', 14, {line.custcol_line_shipdate})
and a few more versions of the above.
DateAdd returns NULL, {line.custcol_line_shipdate} + INTERVAL '14' DAY doesn't allow to open the record, and {line.custcol_line_shipdate} + 14 returns value equal to {line.custcol_line_shipdate}.
Can someone please help me with putting a working formula?