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

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

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


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

Triggered Send using REST API with Data Extension

I would like to substitute some variables in my email template using SFMC's REST API.For example, in my email: %%[Substitute_var1]%%When I call it through REST, how it's possible to substitute this...

View Article

Need help with HTTPPost call in ampscript

I have the following codeSET @CallStatus = ''set @JSON = HTTPPost("http://someapi/bgcenter/","application/json","a=getSubLists&m=10790742&o=j&e=sometest@email.com", @CallStatus)I am trying...

View Article

Is there a way to stop a send to an individual address if data is missing?

I'm new to Exact Target and as the question implies, is there a way to omit the record from being sent an email if the data used for personalization is missing in the list? I personally prefer sending...

View Article


Is it possible to call an AMPScript function upon link click?

Is it possible to do something like:<a href="%%=UpdateDataExtension("", "", "", "")=%%">link</a>

View Article


Using date time of today in look up ordered rows -Ampscript

Im trying to use a lookupordered row expression to find rows that have a submission date of today and display them, unfortunately I am not finding any matches. I am unsure if my syntax is incorrect or...

View Article

Preview links and "View as Web Page" Solutions?

At my company, we need to send out preview links within the organization internally before a communication is sent out. In our past platform (MailChimp) the "View as Web Page" option allowed us to copy...

View Article

AMPscript: Rounding a number in a text field that has several decimals

I have a text field that holds price values like 1190.00 and 1216.666666667.I've used AMPscript to round the numbers to 0 decimal places. Referencing this Q&A Round a number with AMPscript I'm able...

View Article


How pass additional values in Triggered Send DE and update the All Subscriber...

On the form submit I want to pass the following values in Triggered Send DEFirst Name as @first_name Last Name as @last_nameMember Number (This will be a unique number and I would like to set it up as...

View Article

Can we convert a SQL query to AMPscript?

I have this big query to convert in AMPscript. Is it even possible. Any suggestion or guidance would be helpful. SELECT count(*)FROM properties_viewINNER JOIN markets on properties_view.market_id =...

View Article

How to know if an User has logged in SFMC using SFMC APIs or SSJS scripts

We are creating a cloud page where only the users who have access to SFMC can access and login to the page. If the user is currently not logged into SFMC then, when the user opens the Cloudpage it will...

View Article

Can I use a link tag for an additional attribute on the properties tab?

Is there a way to call out a link alt, title, or alias tag to populate as an additional attribute on the properties tab?

View Article



Traacking not working when alias is created dynamically in SSJS block

I am creating a chunk of html content by iterating through an external json.Most of this works nicely but not the tracking of the alias on links.The button part looks like this:html += '<a...

View Article
Browsing latest articles
Browse All 594 View Live


Latest Images