Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Browsing all 357 articles
Browse latest View live
↧

AMPscript Variables in Preheader

Does anyone know why AMPscript variables won't work in the preheader? They will resolve in the send preview, but once the email is delivered they are blank. If I use the same variables in both the...

View Article


RequestParameter and view_email_url

Is it possible to send extra parameters to view_email_url and then pick them up and use them on the web version of the email? I would like to do this so I can perform different actions, such as display...

View Article


Submitting HTML characters to a Data Extension via Landing Page and SSJS

I have tried to push data to data extension through a landing page using SSJS. The form fields contain HTML characters (which will import to the Data Extension fine). I'm getting this error when I...

View Article

Marketing Cloud send to Campaign personalization

Trying to show personalization strings from Campaign and CampaignMember object when doing a send to Salesforce Campaign via Marketing Cloud and later also pass these on to a Cloud Page. Based on this...

View Article

How do you work with the DateAdd function to add hours?

I'm new to AMPScript. I'm working with a Journey with SF Data Entry Source, specifically trying to send emails after someone registers for an event (which is logged in CRM).I want to add six hours to...

View Article


Dynamically Populate Email Name?

I am wondering if there is a way to use AMPScript to dynamically populate email name. We fill in email name in our URL string, but we need to create multiple emails with different email names if we...

View Article

Image may be NSFW.
Clik here to view.

Exclusion script not working for Journey builder send emails

I am trying to use an exclusion script to exclude the contacts from the DataExtension marked as root. Refer to the screenshot of the data and DE structure. The two fields I am referring to in the...

View Article

Ampscript - 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 Article


Are 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 Article


Custom 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 Article

User Authentication AMPscript functions

I note that if I create a CloudPage with any of the User Authentication AMPscript...

View Article

Add 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 Article

How 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 Article


dynamic 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 Article

Call 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 Article


Prevent 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 Article

500 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 Article


How 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 Article

Redirect 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 Article

Need 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 Article
Browsing all 357 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>