How to retrieve Delivery Content post execution?

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

14-02-2019

Hello Folks,

I am using a simple campaign workflow, it looks somehow like below:

START -> QUERY -> RECURRING DELIVERY -> (Some Activity like JS) -> Update -> End

Initially i will target few recipients and trigger an email for them. Now i am trying to modify by placing an activity preferably JS, where i have to fetch the content that is present in the delivery and update to a schema. How to fetch it is i am not getting, any Pointers please, quick help is appreciated

Reards,

Sri Bhargav

Replies

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

15-02-2019

Hello All,

When searching over web, i came across the below API Document. But couldn't find any examples/sample demos for using in Adobe Campaign.

https://docs.campaign.adobe.com/doc/AC/en/jsapi/s-nms-delivery.html

Any pointers plz?

Regards,

Sri Bhargav

Avatar

Avatar
Springboard
MVP
Venu_Reddy
MVP

Likes

163 likes

Total Posts

171 posts

Correct reply

53 solutions
Top badges earned
Springboard
Establish
Give Back 25
Give Back 10
Give Back 5
View profile

Avatar
Springboard
MVP
Venu_Reddy
MVP

Likes

163 likes

Total Posts

171 posts

Correct reply

53 solutions
Top badges earned
Springboard
Establish
Give Back 25
Give Back 10
Give Back 5
View profile
Venu_Reddy
MVP

15-02-2019

Hello,

Hope the below link will help you

A/B testing

Regards,

Venu

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

15-02-2019

Hi Venu,

Thank you for your response!

But content is coming from AEM Page. Here's the flow FYI

Content is created in AEM -> Synced in Campaign Delivery -> Email Sent -> Then I wanted the content to be retrieved here?

Regards,

Sri Bhargav

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

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

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

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

15-02-2019

Hi,

Select [content/html/source] from the delivery in your js' querydef.

Thanks,

-Jon

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

17-02-2019

Hi Wodnicki,

Thanks for your pointer! Now i am able to get the content from the delivery inside the Script activity present in delivery itself.

Is there any way so that i can able to fetch only URL's that are present in the delivery. I don't need full content though

PS: I understand that URL's list can be retrieved from nms:trackingUrl schema for a particular delivery. But point to note is, i am unable to track any of the URL as they are not static, hence they are not visible in that schema, until and unless i can able track then only i can retrieve from that schema. So going by alternative approach.

Regards,

Sri Bhargav

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

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

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

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

18-02-2019

Just parse them out with regex. From https://digitalfortress.tech/tricks/top-15-commonly-used-regex/, collect matches in content with:

/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)/

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

20-02-2019

Thanks Jon. It worked and i am able to get whatever i needed. Thanks all for your help and pointers

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

16-05-2019

Hi Jon,

Retrieving this long back thread, You mentioned to use "Select [content/html/source]" for retrieving the Delivery Content. However i used delivery.content.html.source in the Script Activity of Delivery.

But when I observed, i am not getting updated content from AEM (since content is auto-refreshed during Delivery Analysis), I am getting same old content which is synced very first time.

I tried using JS with queryDef too, But no luck. Could you please help me how to get updated content of the delivery?

Regards,

Sri Bhargav

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

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

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

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

16-05-2019

Hi,

Use nms.delivery.aemGetContent(delivery).

Thanks,

-Jon