Im trying to do a simple edit in my already built ...
# suiteflow
c
Im trying to do a simple edit in my already built workflow to add a month to a certain date field based on the tran date. My workflow event formula is to update the due date to be 1 month from the tran date. This is what i have in the formula but it isn't working: nlapiAddMonths({trandate}, 1)
w
nlapiAddMonths is a JavaScript API thing, formulas are Oracle SQL
I think what you're looking for is
{trandate} + interval '1' month
m
@Wolf Both are used in Workflow formulas depending on whether it’s a client or server side action.
w
Ah, interesting. Good to know.
m
@Cr223309 Try nlapiDateToString(nlapiAddMonths(nlapiStringToDate(“trandate”),1))
👍 1