Web Analytics Connector customization
I have to setup my WAC configuration including a IIF() function to detect if linkname contains the "%" char. In case of yes, I will include one AMPSCript var I am setting up in the context called...
View ArticleAmpscript - Dynamic UTM parameters
I've figured out how to put in dynamic utm parameters to append to all links in an email with the below ampscript.%%[Var @campaign, @pcodeSet @campaignID = "%%campaignid%%"Set @pcode = "%%pcode%%"]%%My...
View ArticleAre supermessages consumed when an email errors?
Question:Are super messages consumed, if an e-mail contains an AMPscript error and is not sent because of this error?Context:In SFMC, in my sendable Data Extension I've seen subscribers with a locale...
View ArticleCustom Subscription Center
I've created a custom subscription center that pulls fields from a DE and then searches for the associated lists in regards to the subscriber who's on the profile center. My question is how I make...
View ArticleUser Authentication AMPscript functions
I note that if I create a CloudPage with any of the User Authentication AMPscript...
View ArticleAdd ReCaptcha to SmartCapture Form in Cloud Pages
We are trying to implement Google Recaptcha v2 into our Smart Capture form within a Cloud Page. Here's what we've done so far:Created a Data ExtensionCreated Cloud Pages CollectionAdded Cloud Pages...
View ArticleHow do you retrieve the Data Extension object structure using AMPScript?
I almost have it, but need some help translating into AMPScript how to get the SendableDataExtensionField.Name, SendableSubscriberField.Name and Template.CustomerKey when retrieving the DE object...
View Articledynamic from name for SMS
Is it possible to change the from name (sender ID) for MobileConnect with ampscript? Based on telecom regulations we need to send SMSes with different from names based on which country we're sending...
View ArticleCall to create the salesforceobject Campaign failed! Object reference not set...
I recieve the following error Call to create the salesforceobject Campaign failed! Object reference not set to an instance of an objectWhen i try to execute the following codeset...
View ArticlePrevent entire campaign from sending if personalized subject line is empty
I have an ampscript that personalizes subject lines based on email name. Is there a way to prevent an email from sending if the email name doesn't match any of the criteria? I know I can use RaiseError...
View Article500 error on Cloud Page
Here is the code on my cloud page. I'm a trying to change the status of a campaign member to Responded if they click on the RSVP button in an email. I am getting a 500 error. Does anyone see anything...
View ArticleHow to Make API Call from SFMC Cloud page to External System
I'm trying to make API call to external system from a Cloud page, but when I publish I'm getting response Response:nullresultString:. Below the code details. Can someone please help me this. Thank you...
View ArticleRedirect to Thank you page from a Iframe
I'm embedding Marketing Cloud forms with a iframe in my website. My form use Ampscript to redirect a Th page. the problem is that it load the thank you page within the iframe. Is there any way to open...
View ArticleNeed total number of DataExtension Rows, SSJS only run for 2000 records
I had a Data Extension with more than 4000 records.In my first query I want to count all my rows in the data extension, than I want to get 10% of this amount.For example: 4400 records => count of...
View ArticleAMPscript to populate order items
I am looking to use AMPscript in Marketing Cloud to populate an email that contains order information which will be housed in the sending data extension. I will need to populate the Item Description,...
View ArticlePass a value via CloudPageURL that will populate a SmartCapture hidden field
I have a SmartCapture form that populates a DE that has three attributes:SubscriberKeyCommentScoreSubscriberKey and Score are both hidden values, and I want to populate them based on the link that the...
View ArticleTrigger Email on Cloud Page Form submission
I changed the logic using single page and only triggering the email. Now, form is submitted but data is not added in Trigger DE and Trigger Email is also not sent.if RequestParameter("submitted") ==...
View ArticleDynamic sender profile not working - From address
I'm trying to set up a dynamic sender profile but something is wrong.I've followed this solution step by step: Sender Profile AMPscriptBut it doesn't work. Problem seems to be the from address, since...
View ArticleHelp with ordering rows in lookup for dynamic email content | SFMC
I am working on create a dynamic email using a contacts engagement on a campaign (using the case create date to create a ranking). The goal of the email is to show the content that the contact is more...
View ArticleCustom font in Email content blocks
Has anyone figured out a way to use custom fonts in Marketing Cloud emails, where the font is specified only with Free Form content block level? There is a hacky solution provided for full HTML emails...
View ArticleAMPscript to update a Contact Record in Salesforce
I have a backbone of code where I am passing the subscriber key to a landing page from an email. I want that when a subscriber clicks and is redirected to the page to update 2 records in Salesforce. I...
View ArticleHow to consume JSON data into data extensions when third party is sending...
Can any one please help me how to implement this in marketing cloud. since i am new to marketing cloud and I know how we can do that in salesforce service/sales cloud. Scenario :we are digital company...
View ArticleIssue with tracking appended to our links on triggered emails
We are experiencing an issue with emails we're sending in regards to the Exact Target tracking appended to our links - in some cases the tracking is preventing our links from displaying in the browser....
View ArticleAMPscript formatting a number using a variable that needs TreatAsContent
I have a data extension that gives me a user's currency, plus fields for the cost that look like this: cost_USD | cost_EUR | cost_BRLHere's what I have in my ampscript:Set @partner_currency =...
View ArticleSmart Capture Form - insert record into Salesforce
I have a Cloud Page with a Smart Capture form. The Smart capture form works as intended and stores the information into a specific Data Extension.In addition to that, I would like to capture the POST...
View ArticleHow to send attachment in email using ampscript?
How to Create an email using the AMPscript AttachFile() function in the exact target content area that will send an email with an attachment using SOAP API and REST API
View ArticleAMPScript for REST API call in landing page
I'm trying to call REST API to display a push message that is sent from Marketing Cloud in landing page.How do I call the API? I was able to get the Token using the client secret and ID but how to pass...
View ArticleLimit on the number of data extension records while processing LookUpRows...
I'm trying to look up for the rows that meet specific conditions (e.g. SubscriberKey equals _subscriberkey value in email parameter).However, I started wondering whether there's a limit for the number...
View ArticleAMPScript For Loop Dynamic Variable
I am trying to get a dynamic variable set inside a script block with AMPScript.Here is what I got:FOR @i = 1 to 5 DO TreatAsContent( Concat( "SET @Test", @i, " = ", 'some value' ) )NEXT @idSET...
View ArticlePrint AMPscript Variable inside HTML as attributes
So I am using ExactTarget templates and content areas to build my emails. In my templates I have AMPscript variables defined in the < head > and that will determine how elements in my content...
View Article