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

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


Image may be NSFW.
Clik here to view.

Pass 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 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

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

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


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

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

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


Pass values using SSJS and AMPscript on email

Firstly, I apologise - I am a beginner with JavaScript and SSJS. I am trying to send an email with a CTA button that has an url to an external page, which will prepopulate values from a DE on the...

View Article


Distributed Marketing displays error during email preview

We have built a email for distributed marketing. The email will preform a lookup on a Stored DE to dynamically display the store address associated with the send. This is accomplished by taking the...

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

Preventing Bot/AI Traffic from Triggering CloudPages Super Message Billing

We’re getting arround 25M impressions on our standard CloudPages that we associate with Bots/AI, which is heavily impacting our Super Message billing. We are trying to block them internally but hit two...

View Article

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


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

Bot Hits Inflating CloudPages Super Messages: Mitigations for Delegated vs...

We are currently dealing with a massive wave of AI bot and scraper traffic (GPTBot, ClaudeBot, Bytespider, curl, etc.) hitting our standard CloudPages—experiencing around 20 million hits recently....

View Article


Image may be NSFW.
Clik here to view.

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

Is it possible to have AMPscript fetch the HTML of an email (prior to send)...

I am wondering if I have an email, already built out with content in place, if I would be able to have AMPscript automatically pull the HTML of the email into a separate HTML block?I then would like to...

View Article


How to Dynamically Use Parameter in CloudPageUrl From DataExtention?

I have a email template from wher we have a custom link for a cloud page(Unsubscribe Page). We are using cloudpageUrl() function to open a cloud page and page value to it. It works fine when we just...

View Article

Print 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

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


Latest Images