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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AnthonyGillEpsilon
Community profile AnthonyGillEpsilon Level 2
Job title here
Location here
9 BADGES
Level 2

Level 2

Learn more
Joined the community 02-09-2016 8:43:28 AM
Online
Top badges earned by AnthonyGillEpsilon
Customize the badges you want to showcase on your profile
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
If you go to Help > About on your toolbar, what version of ACC are you running? (Client side and server side?)

Views

47

Likes

0

Replies

1
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
Does this work?Hello <%=recipient.firstName%>Also, if your emails aren't coming through, they are likely failing somewhere. You'll need to find the delivery and review the audit log. There is probably an error message to address. Typically you'll find your outbound sends in Campaign Management > Deliveries.

Views

56

Likes

0

Replies

4
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
I'm not exactly sure what the issue is, as it's working for me. If I had to troubleshoot, I'd simply the code until it starts working, then slowly re-introduce line by line until it stops. Then I'd know what line is causing the email to not deliver. e.g. Do a test only containing: This is test email and needs to be done by <% var d = new Date(); var dateString = "Testing" %>: <%=dateString%> Please see to it!If that works, change it to: This is test email and needs to be done by <% var d...

Views

117

Like

1

Replies

8
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
I just tried this and it previews correctly: This is test email and needs to be done by <% var d = new Date(); var m = d.getMonth(); var y = d.getFullYear(); var lastDate = new Date(y, m + 1, 0); var dateString = formatDate(lastDate,"%2D %Bl %4Y"); %>: <%=dateString%> Please see to it!

Views

139

Like

1

Replies

23
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
I tested the code and got "30 September 2021" Can you remove the code and confirm you receive the email? Then add the code back and confirm the code is the cause of the issue. Also, make sure the code is not on a single line. Each line of code must be on a separate line. Otherwise, use this: <% var d = new Date(); var m = d.getMonth(); var y = d.getFullYear(); var lastDate = new Date(y, m + 1, 0); var dateString = formatDate(lastDate,"%2D %Bl %4Y"); document.write(dateString) %> The semi-colons ...

Views

144

Likes

0

Replies

25
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
Try this. It will get the "0th" day of the month, which is really the last day of the prior month.<% var d = new Date() var m = d.getMonth() var y = d.getFullYear() var lastDate = new Date(y, m + 1, 0); var dateString = formatDate(lastDate,"%2D %Bl %4Y") document.write(dateString) %>

Views

153

Like

1

Replies

27
Re: Adobe Campaign Classic - Java Script node LogInfo output to Query as a variable
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
You may want to consider using some JSON tricks for more complex patterns. I've made an example with various tricks, below: var obj = {} logInfo("Converting " + rcp.toXMLString() + " to JSON") obj.firstName = rcp.@firstName.toString(); // Make sure you use toString() obj.lastName = rcp.@lastName.toString(); instance.vars.data = JSON.stringify(obj) logInfo("JSON = " + instance.vars.data) # .. Later on.. var data = JSON.parse(instance.vars.data)

Views

29

Likes

0

Replies

0
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
In your subject line, use the code provided. Example:Subject Line: Daily Newsletter - <%=formatDate(getCurrentDate(),"%2D %Bl %4Y")%>When you test, you'll see the subject line will say: "Daily Newsletter - 23 September 2021"

Views

173

Likes

2

Replies

29
Re: Nested collection element
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
I don't think that will work because the parent row (Block Type: 6) doesn't exist until you save, so there is no parent to save the sub-collection against. If you save the object without declaring any collection items, then re-open it and try to save, it may work.

Views

12

Likes

0

Replies

0
Re: Push payload
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
Hi Ursboller, _bid relates to the nms:broadLogAppSubRcp that was created when the push went out. _did is the nms:delivery that is the parent of the broadLog record. For example, if you push to 100 people, ACC will create one nms:delivery record and 100 nms:broadLogAppSubRcp records that point to that delivery. Hope that helps!

Views

53

Likes

2

Replies

3
Re: Dynamic Date in Subject and email body
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
Hi vinay049, You'll want to use formatDate and getCurrentDate. Specs are at https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/f-formatDate.html and https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/f-getCurrentDate.html The specific syntax would be:<%=formatDate(getCurrentDate(),"%2D %Bl")%>

Views

181

Likes

0

Replies

31
Re: Registry error: Unable to find key HKEY_LOCAL_MACHINE...
Avatar
Applaud 5
Level 2
AnthonyGillEpsilon
Level 2

Likes

7 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Applaud 5
Give Back 10
Boost 5
Boost 3
Affirm 1
View profile
AnthonyGillEpsilon
- Adobe Campaign Classic
This fixed it for me. Thanks!

Views

3.2K

Likes

0

Replies

0