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

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


Latest Images