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
When searching over web, i came across the below API Document. But couldn't find any examples/sample demos for using in Adobe Campaign.
Any pointers plz?
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?
Select [content/html/source] from the delivery in your js' querydef.
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.
Just parse them out with regex. From https://digitalfortress.tech/tricks/top-15-commonly-used-regex/, collect matches in content with:
Thanks Jon. It worked and i am able to get whatever i needed. Thanks all for your help and pointers
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?