Skip to main content
source formatting
Source Link
Adam Spriggs
  • 31.1k
  • 6
  • 44
  • 88

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title"@meta_title and "@meta_url"@meta_url is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://websiteurl.com/feed", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%%%%=v(@meta_title)=%% is declared before the HTTPgetHTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%%%%=RedirectTo(@meta_url)=%% works because I guess the RedictToRedirectTo() function evaluates after the email is rendered. To the the "@meta_title"@meta_title to work I was trying to maybe queue the HTTPGetHTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREFhref.

Any ideas?

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title" and "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://websiteurl.com/feed", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedictTo function evaluates after the email is rendered. To the the "@meta_title" to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example @meta_title and @meta_url is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://websiteurl.com/feed", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedirectTo() function evaluates after the email is rendered. To the the @meta_title to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the href.

Any ideas?

deleted 97 characters in body
Source Link
DigitalMC
  • 313
  • 1
  • 3
  • 11

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title" and "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://dev.pushproject.fancentricwebsiteurl.fmcom/?h=647_a005bf165b6846e9eb0a33dc3df6eaf673&cache=true&et_version=1.3&content_radar=true"feed", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedictTo function evaluates after the email is rendered. To the the "@meta_title" to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title" and "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://dev.pushproject.fancentric.fm/?h=647_a005bf165b6846e9eb0a33dc3df6eaf673&cache=true&et_version=1.3&content_radar=true", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedictTo function evaluates after the email is rendered. To the the "@meta_title" to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title" and "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://websiteurl.com/feed", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedictTo function evaluates after the email is rendered. To the the "@meta_title" to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

Tweeted twitter.com/#!/StackSalesforce/status/501409963588460544
added 191 characters in body
Source Link
DigitalMC
  • 313
  • 1
  • 3
  • 11

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title" and "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 BeNew TheBlog FirstPost:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://dev.pushproject.fancentric.fm/?h=647_a005bf165b6846e9eb0a33dc3df6eaf673&cache=true&et_version=1.3&content_radar=true", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=RedirectTo%%=v(@meta_url@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedictTo function evaluates after the email is rendered. To the the "@meta_title" to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 Be The First To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://dev.pushproject.fancentric.fm/?h=647_a005bf165b6846e9eb0a33dc3df6eaf673&cache=true&et_version=1.3&content_radar=true", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=RedirectTo(@meta_url)=%% is declared before the HTTPget the variable is empty. I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case WordPress.

So basically I'm pulling in the dynamic content using an HTTPget. Within that content I am setting AMPscript variables. The issue is I need to output the variable in code before it gets set (using the HTTPget).

In the below example "@meta_title" and "@meta_url" is being set in the HTTPget. Here is my example:

 <!-- A CTA to appear before the other content being displayed. --->
 New Blog Post:%%=v(@meta_title)=%%. Click To <a href="%%=RedirectTo(@meta_url)=%%">Read Now</a>

 <!-- Get The Content Containing The Variable --->
 %%[
   Set @taca = TreatAsContentArea("73", HTTPGet("http://dev.pushproject.fancentric.fm/?h=647_a005bf165b6846e9eb0a33dc3df6eaf673&cache=true&et_version=1.3&content_radar=true", false, 0, @CallStatus))
 ]%%

 <!-- Display The Social Content --->
 %%=v(@taca)=%%

The problem I am having is since %%=v(@meta_title)=%% is declared before the HTTPget the variable is empty. Oddly %%=RedirectTo(@meta_url)=%% works because I guess the RedictTo function evaluates after the email is rendered. To the the "@meta_title" to work I was trying to maybe queue the HTTPGet somehow to get the variables but not output or somehow retroactively replacing text in the HREF.

Any ideas?

Source Link
DigitalMC
  • 313
  • 1
  • 3
  • 11
Loading