Help with script in custom flow action - need to return value with date & time

Lon Landry4
Mega Sage

I have a custom action for flow designer that nearly works, the correct date is returned but no time.

Action - Set date to first of month

Inputs:

setDate01.png

 

Label Next audit date & Name u_next_audit_date with Type Date/Time

 

Script step

scriptStep.png

 
Outputs:
outputs.png
First of month date (ill from script step)
Warning in script step.
Encountered undeclared output variable: result_date_time

What is returned - (Correct date but no time stamp...)
good.png
Any ideas?
 
6 REPLIES 6

Lon Landry4
Mega Sage

 will try another question - I am now further back from where I started... 😞

Now, nothing works so a big step back...

Joshv3707220614
Tera Contributor

The warning is most likely because your script is using outputs.result_date_time, but it's not defined as an output for that script (bottom part: Output Variables).