Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Script wait for condition (Field date/time = current date/time

brianlan25
Kilo Patron

I have a wait for condition running in my workflow.  I'm trying to get it to run based on a field (not a variable) when the filed u_start_date is equal to the current date time.  How can I achieve this?  Below if my current code.

var answer;
answer = current.u_start_date == gs.nowDateTime();

Note that my system property glide.sys.default.tz is set to US/Eastern which is what all users are set to as nobody is in a different time zone.

1 ACCEPTED SOLUTION

brianlan25
Kilo Patron

Figured it out.  If I switch to a timer activity I would use set time based on "A date/time or duration filed" then I just selected by u_start_date filed.  No script needed.

View solution in original post

1 REPLY 1

brianlan25
Kilo Patron

Figured it out.  If I switch to a timer activity I would use set time based on "A date/time or duration filed" then I just selected by u_start_date filed.  No script needed.