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

How to restart a Triggered Send from the AmpScript

I have defined a Triggered Send based on a sendable Data Extension and an EMail AMPScript. I have assigned a external key to the Triggered Send and is sending emails when I create a POST request to the...

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


Using the CC features of SFMC to populate CC recipients with AMPScript. Need...

Need an email in a journey to go to an entire Plan Team. The Plan Team is listed in Sales Cloud so we are sync-ing the Plan roles from Sales Cloud into a DE via the SQL activities and then referencing...

View Article

dynamic from name for SMS

Is it possible to change the from name (sender ID) for MobileConnect with ampscript? Based on telecom regulations we need to send SMSes with different from names based on which country we're sending...

View Article

Redirect not working in if/else but working in some part of the code

In This code Line 62 & 65 where i have commented out { Redirect(concat(@loginPageURL,"?invalidtoken=",1,"&referer=",@referer)) }The code does not work when i include these line in my code.why...

View Article


Image may be NSFW.
Clik here to view.

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

Hiding HTML table of code within Ampscript IF-ELSE Statement - Reduce file size?

I am working on an email template with a large number of modules. If I add these modules within the AmpScript IF-ELSE statement - for eg: Display module 1 table of code within in the If statement and...

View Article

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


Send email only if attachment exists in import SFTP Marketing Cloud

I have an incoming zip file containing multiple csv files. I extract and run an automation activity on a specific file name pattern, this is the master data file containing which file goes as an...

View Article

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

WAC - Parameter Management for LinkName Manipulation

I have an Email with an Image content block that has a link a link to Facebook. The link has a title of Facebook and an alias of facebook.In the Web Analytics Connector (WAC) Parameter Management...

View Article

Image may be NSFW.
Clik here to view.

Error in email preview when using Lookup() with _subscriberkey

I'm new to SFMC and AMPScript. I want to create an email that starts with the name of the employee who receives it, using the Lookup() function to return their name.My code:%%[ SET @subKey =...

View Article


How to insert error message into DE when using RaiseError that blocks the...

I have a scenario where I want to block an entire send when a specific flag is "True" and insert an error message into custom error log Data Extension.Basic logic flow is,IF (errorFlag) THEN...

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


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

I'm trying to convert 31-05-24 into May 31, 2024

I'm trying to convert 31-05-24 into May 31, 2024 using Format or FormatDate the best i can get is 31-05-24 -- i've even had success with converting 31-may-23 do I need to ask the client for a...

View Article


CloudPage InsertData() shows 500 error message if data already exists in DE

How can I get the CloudPage not to go to the 500 error page if I am using InsertData() but the data was already existing in the Data Extension? It works the first time if it doesn't exist, but it the...

View Article

Hyperlink values within an IF EMPTY Ampscript statement

all. This is an Ampscript/SFMC inquiry below.I am trying to solve for adding a hyperlink to an IF EMPTY statement and have it render outside. You can see the bold start a chapter identified below is...

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


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