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

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


EncryptSymmetric AMPScript AES

We want to encrypt / encode URL parameters on our pages. I tried to encrypt a parameter using EncryptSymmetric() with AES algorithm as explained in the documentation%%[SET...

View Article


Redirect Cloud Page

On form submit I want to redirect the user to a cloud page url.When I use the following code %%=Redirect('whole cloud page url')=%%On form submission, I get 500 error.To test if my code is working:...

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

AMPscript Lookup fails to find record

Having trouble with lookup not returning what's expected.The @LOTeamName is what I'm having trouble returning. No errors when I run it, it just doesn't return anything even though I know it's...

View Article


Marketing Cloud: AMPscript redirect not working

When trying to use 'redirect', my 'starting' page will no longer load (returning the 500 error). Not sure what I'm doing wrong here. FYI: If I remove the redirect code, the page loads just fine. Here's...

View Article

Default value using AMPScript

I want to show a default value "Friend" if firstname is Empty or unknown And it should show the name if it is there. But this is not working. Can anyone help me this.%%[var @Firstname, @Email set...

View Article

RequestParameter in Ampscript and how it is used?

We have a html form and from this form we fetch email address.For example, the form input field looks like this,<input type="text" name="EmailAddress">Then there is the amp-script code to fetch...

View Article


AMPScript: How can use DecryptSymmetric() function to decrypt an encrypted...

I need to decrypt an encrypted string using AMPScript's DecryptSymmetric() function which is coming from an external system(PHP). I am not sure which algorithm PHP should use to encrypt the string, so...

View Article


Update Data Extension with keyword in Mobile Connect Text response

I was trying to trigger a specific MobileConnect text response keyword which should update a Data extension. When I add some ampscript to the outbound response, I get an error saying "There was an...

View Article

Understanding the opts Parameter in SFMC SSJS WSProxy's performItem Method...

I'm working with Salesforce Marketing Cloud's Server-Side JavaScript (SSJS) and utilizing the WSProxy object to perform various actions. I've encountered the performItem method, which takes four...

View Article

What are the differences between performItem and execute in SFMC SSJS WSProxy?

I'm working with Salesforce Marketing Cloud (SFMC) Server-Side JavaScript (SSJS) and using the WSProxy object to interact with various Marketing Cloud APIs. I've come across two methods for performing...

View Article

Creating new subscriber on ENT 2.0 account using ampscript

We are builing landing pages using ampscript to unsubscribe email address submitted via these pages. The pages should check for email address to existing subscriber and unsubscirbe them or create new...

View Article


Lookup issue push message

We have a push message in a multi-step journey. Based on a preferred language field in another Data Extension (so it is not in the send Data Extension), we are displaying either a Dutch or an English...

View Article

Image may be NSFW.
Clik here to view.

Can I use an AMPscript variable in my Push Notification Open Behaviour?

When I want to use a dynamic link in an email in SFMC I use a Code Snippet to grab it from a Data Extension based on the Language of the subscriber, like this:%%[ Global links ]%%<script...

View Article


AMPScript generating logs but not capturing field value in the CRM

I am using a email interactive form on SFMC. The form has just one field "zip code". Once users enter the zip code and hit submit, it gets captured in a data extension and they are redirected to a...

View Article

CloudPage Help - How to lookup value from DE but return a different value

On a CloudPages confirmation page I'm trying to write a code to lookup a value from the DE and based on their survey responses, output recommendations. For example, the DE could say 'SUV'. So on the...

View Article


Read all request headers on CloudPage server side without knowing their names

I need to store whole HTTP request made to a CloudPage for audit purposes. I'm able to log everything besides headers. I'm unable to read all of them with ampscript or SSJS without knowing their names...

View Article

RetrieveSalesforceObjects with date filter - Ampscript

I need to consult Salesforce records that where created in the last 7 days, but when I test the email it appears the following error:Call to retrieve records for salesforceobject Questionario__c...

View Article

Get Marketing Cloud UserID (numeric)

I'm currently following this guide:https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/createDataExtension.htmTo create a data extension via...

View Article

Send data from one CloudPage to Another

I have a cloudpage that register some customer infos(Fname, Lname, Id...), and theses info needs to be transferred to another CloudPage in order to display the correct Content for that Customer, I'm...

View Article


Pass information from one page to another using AMPScript

We have to create a custom unsubscribe page in Marketing Cloud and we would like to know if it's possible to pass information from one page to another using AMPScript.On the first page, the customer...

View Article


Custom CloudPage Preference Center

I'm trying to build a simple preference center using Smart Capture. I'm trying to have the user experience be when the person clicks the "Unsubscribe" CTA in the footer it sends them to a Landing Page...

View Article

Anyone knows Marketing Cloud custom API endpoint (Cloudpage code resource )...

We have implemented a "Marketing Cloud Custom API endpoint" using "Cloudpage code resource" which MuleSoft is using to make API calls from MuleSoft to SFMC Code resource endpoint.For above we need to...

View Article

An unrecognized expression appears in a script block. Script Expression:...

When previewing my email I get the following error message: An unrecognized expression appears in a script block. Script Expression: < MemberID: XXX JobID: 0The error appears to be related to the...

View Article


Display Error Message - AMP Script

I would like to display an error message in login page, if the credentials are wrong or invalid. error message like "Invalid Username / Password" should be displayed next to the login buttonhow can...

View Article

AMPscript: Pull data extension row count

I'm trying to use AMPscript to pull the number of rows (all rows, rather than matching to a specific variable) in a data extension and insert that variable into an email. However, the variable I'm...

View Article

Retrieving images from RSS feed ExactTarget with AMPScript

I am embedding an RSS feed in an email using AMPScript. I am successfully pulling in the title, description and link, but I’d also like to include the image that’s part of the description in the feed....

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



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


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