Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Setting Global XML Workflow Variables

Avatar

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct Reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct Reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
davidl14970702
Level 4

23-04-2019

I have a bunch of workflows within a campaign that needs the date changed every time. I would run DaysAgo() but this person needs to be able to also search any customer date range.

I know I can use a JS activity to set the dates and call it into the activity like this.

vars.myDateOnOrAfter = "2019-04-04T12:00:00Z";

vars.myDateOnOrBefore = "2019-04-14T12:00:00Z";

Can anyone confirm the correct syntax to set these dates in the properties of Campaign in the XML?

I tried this and it didn't see my variables.

<variables vars.myDateOnOrAfter="2019-04-04T12:00:00Z" vars.myDateOnOrBefore="2019-04-14T12:00:00Z"/>

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

957 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

957 likes

Total Posts

1,079 posts

Correct Reply

506 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

23-04-2019

Hi,

Use NL.XTK.formatDateTime() to set a new datetime attribute in the workflow schema, for whatever you're tracking.

If the number of workflows is limited, e.g. ETL workflows, consider using xtk:option's instead.

Thanks,

-Jon

Answers (0)