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
AnthonyGillEpsilon
Online

Badges

Badges
9

Accepted Solutions

Accepted Solutions
1

Likes Received

Likes Received
7

Posts & Comments

Posts & Comments
12

Discussions

Discussions
0

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by AnthonyGillEpsilon
Customize the badges you want to showcase on your profile
Re: Dynamic Date in Subject and email body - Adobe Campaign 04-10-2021
If you go to Help > About on your toolbar, what version of ACC are you running? (Client side and server side?)

Views

570

Likes

0

Replies

1
Re: Dynamic Date in Subject and email body - Adobe Campaign 04-10-2021
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

579

Likes

0

Replies

4
Re: Dynamic Date in Subject and email body - Adobe Campaign 27-09-2021
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

640

Like

1

Replies

8
Re: Dynamic Date in Subject and email body - Adobe Campaign 24-09-2021
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

901

Like

1

Replies

23
Re: Dynamic Date in Subject and email body - Adobe Campaign 24-09-2021
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

906

Likes

0

Replies

25
Re: Dynamic Date in Subject and email body - Adobe Campaign 24-09-2021
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

915

Like

1

Replies

27
Re: Adobe Campaign Classic - Java Script node LogInfo output to Query as a variable - Adobe Campaign 23-09-2021
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

288

Likes

0

Replies

0
Re: Dynamic Date in Subject and email body - Adobe Campaign 23-09-2021
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

935

Likes

2

Replies

29
Re: Nested collection element - Adobe Campaign 23-09-2021
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

158

Likes

0

Replies

0
Re: Push payload - Adobe Campaign 23-09-2021
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

298

Likes

2

Replies

3