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

Feeding Subject Line to Title for View as Webpage

I'm trying to use ampscript to feed the subject line to the title tag on the webpage that loads when clicking on VAWP.-I have the title tag set as <title>%%=v(@Subject_Line)=%%</title> in...

View Article


How to use code snippet within another code snippet in SFMC?

We need to use a code snippet (cs1) within another code snippet (cs2), and are referencing the other code snippet (cs1) using ContentBlockByID function. Using separate code snippets since each have...

View Article


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

Marketing Cloud - Call to Action button linking to a dynamic url

I need help creating the code so when a user clicks on a call to action button that it takes them to their personal url to take a qualtrics survey. We have a custom field in Salesforce Survey_Link__c,...

View Article

Retrieve data extension from different bussines unit using AMPScript

I have 2 business units. In one of them there is a landing-page and on another data extension. Can I retrieve data from data extension on my page? Standard function like Lookup Row() doesn't work.

View Article


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

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


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


Custom cloudpage form - How can I submit textarea value containing HTML?

I have a cloudpage form and I need to allow users to input copy with hyperlinks in textarea field. Form works but if the user inputs text with html, for example: Visit <a...

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

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

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


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

Can we bypass SALT value in encryptsymmetric function in Ampscript?

I have to encrypt the value coming in sendable DE using ampscript. I have gone through SF documentation of Encrypt Symmetric function which makes SALT value as mandatory parameter. Unfortunately third...

View Article


Attachement unfound in sftp - Attachfile()

We want to send attachments to clients as soon as they arrive on the SFTP using AttachFile.Here’s what we’ve tried so far:Using legacy APIs to list filenames in the SFTP directory → but itonly fetches...

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

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

Problem with Ampscript If statement - ContentBlockByID

Hi I am using the below ampscript code to display the content based on the contentblockbyID.But when I do preview and test, nothing is showing up.Can someone say what is wrong with my code.%%[ IF...

View Article


How to prevent Content Builder plain text from designating the same link to...

The AMPscript is set up like this in Content Builder. Example:Content Block 1SET @linkButton = "link1.com"Content Block 2SET @linkButton = "link2.com"Content Block 3SET @linkButton = "link3.com"In the...

View Article


Dynamic link formation and WAC

Is there anything wrong with using the following code with custom variables for a dynamic link. Will WAC cause any issues?<a...

View Article

Extract the json object key with BuildRowsetFromJson

Hi I have json structure like this sample (but the object name/count will be dynamically come from html input, which will have different values of any...

View Article

How to pull data from Data Extension to be displayed in Landing Page?

How to pull data from a specific data extension that can be displayed on a Landing Page using Ampscript?On the email I have this Ampscript which displays the Balance Points once sent on the Email...

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

Populating dynamic redirect in landing pages

We have a large survey which I have divided into 3 forms. On completion of each smart capture form I am trying to append some personalised elements so they get picked up in the next form so we can join...

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

"Invalid URL" message on webpage while accessing marketing Cloudpage on live...

We are receiving "Invalid URL" message on webpage while accessing one of the Salesforce Marketing-Cloud Cloudpage on a live website. Below are some details from our environment.The cloudpage where we...

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
Browsing latest articles
Browse All 459 View Live


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