Questions tagged [gtl]

SFMC Guide Template Language is an email scripting supplement to AMPScript and Server-Side JavaScript.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
119 views

Un-Escaped HTML for Variables in Guide Template Language Not Working

We have HTML templates in ExactTarget that use variables passed in via the REST API. The variable contains text with HTML entities. I read the following documentation for the Guide Template Language....
2
votes
0answers
623 views

Set GTL output in AMPSCRIPT variables

hope that someone can help me here: I'm trying to retrieve a simple result from a POST api call into ampscript variables. The cloudpage does show the variables as GTL, but when I try to display them ...
2
votes
0answers
178 views

GTL Json data looping

I have a GTL code that loops through my JSON code. In the JSON string i have several order data but in each array there is the same adress information like so: [{ "name":"This is a name", "sku":"8547"...
2
votes
0answers
392 views

Ampscript Loop : Multiple rows needed in multi-column email layout

My newsletter was set up to loop per row in the DE to fill in needed info into a content block that gets created up to 35 times. There has been a new content block that now requires I pull two or more ...
2
votes
1answer
351 views

GTL in a Content Area

I'm using GTL (Guide Template Language) on the body of an email where I want to show some images dynamically and works well. But, to let the email more "clean" I want to copy that GTL code on a ...
1
vote
0answers
83 views

GTL comparisons

I have the following GTL code wich workes fine: {{#if Months!=""}}{{Months}}{{/if}} However i want to do a double check. So i want to check if the field weeks is empty or greater than 1. I tried ...
1
vote
0answers
178 views

GTL conditional display of JSON content based on later values

EDIT: It occurred to me that there is a much simpler, broader way of asking this (or at least very relevant to it): is there a way to pull unique values from a JSON attribute, e.g. within the ....
1
vote
0answers
170 views

GTL - Can't use inside a content block?

I created a code snippet that contains AMPscript and GTL: %%[ /*API Subscriber Config*/ ContentBlockByName("Content Builder\_EmailAssets\Code Snippets\API Subscriptions\API Subscriber Config") SET @...
1
vote
0answers
105 views

Journey Data in Mobile Push

I am trying to personalize a Push message with Journey Data coming from API call. I am trying to use GTL but it is not working. {{Event.Event-Definition-Key.Attribute-name}} Thanks!
1
vote
1answer
341 views

GTL : Journey Data and Contact Data inside Journey Builder Email activity

I want to use GTL with Journey Data and Contact Data to personalize an Email with information stored in Contact Builder and information coming from an API event triggered by an external system. I am ...
0
votes
1answer
117 views

using AMPscript variable instead of the target Data Extension's name in Guide Template Language dataobject type list

I am building an email in Content Builder that will show GTL variables but I want to set an AMPscript variable to the target Data Extension’s name. I find that I can use AMPscript variables in the GTL ...
0
votes
1answer
165 views

GTL counting Json string

I have set up a GTL and AMP script that looks at my attributes where i passed in a Json string (array). This is the string: `[{"MiddleName":"der","LastName":"Test"},{"MiddleName":"van der","LastName"...
0
votes
0answers
102 views

Content pulled from JSON becomes ASCII encoded when special character

I am successfully pulling content from a JSON feed into an email using set @json = TreatAsContent(HttpGET("https://test.com/fakeaddress")) The feed contains a lot of special characters (åäöé) and ...