New answers tagged

1

Review the help doc for the function : Substring and reviewing the example and considering your test, it appears to start at 1 %%=Substring('abcdef',2,2)=%% returns bc


1

See Salesforce's documentation on this. If you're updating AMPscript, the documentation states that you need to pause and republish its associated triggered send via Interactions > Triggered Sends > Journey Builder Sends. Once you've updated your email, do the following: Navigate to Interactions > Triggered Emails > Journey Builder Sends, to ...


0

I spoke to the Salesforce Support and we came up with the following solution. After the submit the variables for the UTM parameters weren't being generated in time. To fix this the following hidden form: <input name="utm_source" type="hidden" value="%%=v(@UTM_Source)=%%"><br> <input name="utm_medium" ...


6

This is the order of operations: Order of Operations AMPscript processes functions in this order: 1 HTML Body 2 Text Body 3 Subject Line Any preheader values reside at the beginning of the body and process accordingly. Source: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/...


1

It looks as though replacing the shorthand opening/closing tags (%%[ ]%%) with the longform does fix the issue for some strange reason. This is within the context of a Code Snippet block in the email editor. <script runat=server language=ampscript> SET @i = 0 SET @text = "You are <0>amazing</0>." SET @closeTag = concat("</...


0

Conditional AMPscript logic can be used in the template to surround the slot(s). %%[ IF 1 == 2 THEN ]%% <div data-type="slot" data-key="interactivecontent" data-label="Interactive Content Section"></div> %%[ ENDIF ]%%


1

I took your code that "doesn't work", and it does indeed work. copy / pasted example two (yes, I made sure) onto a cloudpage, added the AMPscript tags and wrote the output: %%[ SET @i = 0 SET @text = "You are <0>amazing</0>." SET @closeTag = concat("</", @i, ">") SET @tag = @closeTag SET @tagLen = ...


0

AttachFile is an option that comes with a cost. You need to contact your account executive to get this enabled. Also each time you will send with a FILE it will consume an attachmessage count. And you will have to decide how many attachmessages you will license.


1

If you really need a real time notification, once a link has been clicked in an email, you can utilise the ENS which is a part of the new-ish Transactional Email feature of SFMC. The reason why I assume this is suitable for you, is the fact of you mentioning Triggered Sends: The reason I want this functionality is to ensure that a user receives the ...


0

This is not possible directly, however some workarounds are available. If you don't want subscribers to end up on a cloudpage, you can trigger the send from the cloudpage and redirect the subscriber to an external page right after the trigger. You can also create an automation that checks the _click data view. After a click, the send can be triggered. With ...


0

I didn't realize it was formatted JSON! I used Datasource and it worked like a charm.


0

I believe enabling a sendlog would work provided you have that same field in the log and email. Basically you have an AMPScript variable for your subject. %%[ var @subject set @subject = "whatever your subject is" ]%% Then you would write %%=v(@subject)=%% In your Send Log DE, you can create a column saying "subject" which should pull the ...


0

I used this solution here - AMPScript to retrieve TODAY created rows on an email It appears the issue is related to date time being the full value and not in the format expected, I ran a query using date time then stamped a lookup value in the DE, this works.


3

You should use AttributeValue() function, to grab the value of LastLoggedInDate and LastEmailOpenedDate from the data extension: SET @LastLoggedInDate = AttributeValue("LastLoggedInDate") SET @LastEmailOpenedDate = AttributeValue("LastEmailOpenedDate") IF @Campaign == "Newsletter" THEN IF (@LastLoggedInDate < DateAdd(Now(), ...


0

Alias names can be obtained by taking the ClickImpression data extract. This data extract has a record of all the clicks as well. It has a field for ImpressionRegionName and Alias so both can be obtained. It also has all the fields available in Click data view.


1

I think you may be misunderstanding the purpose of the AttributeValue function. It's meant to retrieve and validate contextual variables. You're also missing an opening block tag (%%[) before the first condition. Assuming that @action should be @CardTierDesc, you could do something like this: %%[ var @CardTierDesc set @CardTierDesc = AttributeValue("...


1

There are few issues with your code: You should prepend your variable names with "@", as this is the correct notation for variables. I assume you are fetching these numbers from your sendable data extension. In this case you should define your @OrderTotal using AttributeValue function, making your code more robust. When comparing numbers, don't ...


2

The Reference block is nearly 100% identical to the AMPscript ContentBlockByID. This can be verified because if you look at a preview of the email outside the editor (properties tab), it shows %%=CONTENTBLOCKBYID('12345')=%% in the Reference Block position. The main differences are: You do not get control over the other optional parameters ContentBlockByID()...


1

You have a logical problem in your IF statement. IF (@Product == "Electricity" AND @Product == "Broadband" (...) this will never be true. You might want: IF (@Product == Electricity OR @Product == "Broadband) AND @Status == "Pending" THEN


0

After multiple different solutions, I've decided to go for the RaiseError function. The exclusion will not happen too many times, so this should be sufficient enough.


Top 50 recent answers are included