I have variables defined as datevar = Date datestringAGS = String In an Assign node, I have added this javascript datevar= pfDate(qryAppInfo_BIRTHDATE,'yyyymmdd') datestringAGS= getDateAGS(datevar) Where qryAppInfo_BIRTHDATE is a date field from a table. When I run the flow, I get these errors: Exception while evaluating expression: datevar= pfDate(qryAppInfo_BIRTHDATE,'yyyymmdd'); TypeError: Cannot find function substring. (threadScript#119) Exception while evaluating expression: datestringAGS= getDateAGS(datevar); TypeError: Cannot find function getFullYear. (threadScript#168) I’m totally confused as to why I’m getting them as I’m using PFlow supplied functions. Anyone have any ideas?
I have variables defined as
KerriR, What you have listed does not look correct to me - ** IF ** you really have a date formatted as yyymmdd to start you would not need to getDateAGS. I have a flow that does the same thing you are trying to do and it is working fine. My flow pulls a date from PA52 that is in AGS format and I want to show it in an email so I changed it to a DME and it works perfectly. AGS - yyyymmdd DME mm/dd/yyy I am thinking you are using the wrong pfdate format... If your starting date variable is already yyyymmdd you would not need to convert it to an AGS date with the getDateAGS. I think you need to look at what your date is starting as and what you are trying to get when it is converted.
This might help - If you want to convert dates try this:
yyyymmdd TO mm/dd/yyyy stdatevar = yyyymmdd stdateDME = getDateDME(pfdate(stdatevar, 'yyyymmdd'))
mm/dd/yyyy TO yyyymmdd stdatevar = mm/dd/yyyy stdateAGS = getDateAGS(pfdate(stdatevar, 'mm/dd/yyyy'))
Affected Products & Releases:
Affected Product
Affected Release
Patch Status
Notes
S3 ProcessFlow
9.0.1.7