Assigning Date to a variable

0
how do i assign Date to a variable. when i use [$SubmissionDate = [%BeginOfCurrentDayUTC%]], it complains that no viable alternative at input '['.
asked
2 answers
0

You are missing some quotes ie [$Date = '[%BeginOfCurrentDay%]'].

Regards,

Ronald

answered
0

It looks like you are mixing XPath and Microflow expressions: what you wrote is a comparison of a date variable to a token, not an assignment.

To assign a date to a variable, use a create variable action (or a change object action). Then, you can click on generate, select token and select the correct token from the drop down list. Alternatively, you can set a specific date or assign a value from an object using $Object/DateTimeAttribute.

answered