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 ArticlePass 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 ArticleNeed 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 ArticleTrigger 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 ArticlePassing SubscriberKey from CloudPage to JavaScript file
I have a custom preference center built in CloudPages. Also have a separate code resource file (RetrieveMemberdata.js) which contains all my AMPScript.This file is invoked from CloudPage using tag as...
View ArticleIIF AMPscript function in Web Analytics Connector not working as expected
My Tracking String in WAC is the...
View ArticleDynamic 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 ArticleDynamic Preheader not rendering
I am aware of the bug about the preheader which is not displayed once the email is sent. I would like to render a dynamic preheader based on a field on a DE.My email is structured as follows: I have a...
View ArticleCreating ICS links on a Landing Page via AMPscript
We're building a set of linked pages inside of ExactTarget using AMPscript and data extensions. The Data extensions contain events with date tags and we'd like to use these to have an ICS link appear...
View ArticleIssue 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 ArticleAMPscript 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 ArticleHaving issue with Email personalize with %%First Name%%
I have created an email template on Salesforce Marketing Cloud and I want to add %%FirstName%% personalization string to it. However, I haven't been able to do so after trying different syntaxes. Below...
View ArticleAMPscript 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 ArticleHow 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 ArticleAMPScript 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 ArticleAmpscript UpdateSingleSalesforceObject Function in Loop
Im getting a 500 - error on my code and can't figure out whats causing it. Im trying to build a custom preference center (cloud page) that updates corresponding contact point consent records in...
View ArticleEncrypting ContactKeys to share with a vendor for use as a querystring GET...
I've got a data extension with over 2500 records in it that I'm trying to modify as such: take the 'ContactKey' value, encrypt it using EncryptSymmetric() in AMPscript, and then assign the 'Encrypted...
View ArticleSmart 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 ArticleJS Code in Browser AND Server
Is there any practical way to write JavaScript functions such that the same code can be executed in BOTH a Landing Page written in AMPscript AND SSJS executed on the server (other than copying the same...
View ArticleAmpscript Lookup function on field which is null
I am using this function:%%=Lookup("ENT.SBQQ__QuoteLine__c_Salesforce","SBQQ__ProductName__c","sbqq__quote__c", "a0n5E000002KZHQQA4", "SBQQ__Required", @required)=%%which works all the times (it...
View Article