How to retrieve Delivery Content post execution? | Community
Skip to main content
Level 6
February 15, 2019

How to retrieve Delivery Content post execution?

  • February 15, 2019
  • 1 reply
  • 8145 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 6
February 15, 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

Venu_Reddy
Level 6
February 15, 2019

Hello,

Hope the below link will help you

A/B testing

Regards,

Venu

Jonathon_wodnicki
Community Advisor
Community Advisor
February 18, 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


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@:%_\+.~#()?&//=]*)/