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

Attach File Function Ampscript

I am trying to use attachfile ampscript in conjunction with date personalization string. Please see below steps:1: Data Extract Activity which exports the data from data extension with the file name...

View Article


Upload resulting gif of AMPscript BarcodeURL() to content builder

I want to send a member card as barcode via SFMC/Whatsapp. However, Whatsapp content does not allow the use of the BarcodeURL() function to generate the barcode image. My plan now is to use a code...

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

Cloud pages internal notification to different email addresses based on form...

Hello All: I have a smart capture form in a landing page and want to notify email address 1 if Radio button 1 is selected or email address 2 if Radio button 2 is selected on form submission.Current...

View Article

SMS Character Limit with AMPScript

We're using AMPScript to create a send log for all email and SMS sends. In MobileConnect, I can include the AMPScript and the SMS text fine and it's reported as one send however, when using Journey...

View Article


AMPScript / JS Base64Encode for images create wrong code

I'm trying to create a dynamic QR code to be sent in a triggered mail, but since QR codes are not supported (only bar codes are) am I using Google API to create one. I then try to base64 encode the PNG...

View Article

Does SFMC Push Message support Amscript RaiseError Function?

thank you for your time.I wonder if Amscript RaiseError Function works for push message? I tried a few test and it's not working on my end, however I couldn't find any evidence that confirm or deny...

View Article

Partial/nonexact matches with LookupRows function

THE PROBLEM: LookupRows appears to be making partial matches of the third parameter (value used to match rows to return) and therefore returning the incorrect value.BACKGROUND: Because of different...

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


Invalid index (parameter2) Passed to row function. Index must be less than or...

I am trying to display 3 hotel contents in a for loop but I am getting the error while previewing only for specific contacts. Not able to solve this. Any help would be greatly appreciated.This is my...

View Article

SMS AMPscript Text Response

Following the below thread, we have created AMPscript for a text response that is associated to a Next Keyword in an SMS Outbound message.Capture SMS response on Journey BuilderHowever no responses are...

View Article

profile center ampscript not working

I build a profile center using ampscript and cloudpage, I tried to update all subscribers status use below code but it did not update the subscriber's status at sfmc:IF RequestParameter("submitted") ==...

View Article

Correct date and time while considering Daylight Savings Time (DST) in event...

Some time ago I was working on some Marketing Automation improvements at a client when we encountered a very specific problem:For appointment confirmations sent out via e-mails from SF Marketing Cloud...

View Article


Ovewrite a data extension field in the send log

I am trying to overwrite the data that comes into the send-log from a Data Extension field on an email send.I've researched UpdateDE but I'm not trying to permanently alter the data extension. I'm...

View Article

Add copy to email if boolean field in data extension is true

I want to add some copy into an email only if the boolean (@CPD) in my data extension is TRUE.Can someone provide me with an example of code to do this? Can I have the copy in the AMPscript of the...

View Article


Image may be NSFW.
Clik here to view.

Lookup function in email builder returning error "invalid field" and does not...

I am trying to pull first name of a contact to my email (emailbuilder) through a simple lookup on my shared data extension.<div style="display:none"> %%[ var @dataExtension, @returnedField,...

View Article

Ampscript code to cut part from string

I created a code to take the utm and cut it specifically in the campaign part of the utm and return only it. this code works as long as the utm campaign comes first. But I also need to consider that...

View Article


Only showing those that Return true from a FOR AmpScript

I am searching a data extension based on an ID and returning vairables and a link from those.I was able to get it to pull all the required data and show correctly. However when I try to add a condition...

View Article

AMPscript Wildcards?

I have 365 days of images. some are gif's and others are pngs. Format is daymarker.png or daymarker.gif. They are random on the days and they don't follow any pattern.Is there a way I can say IF image...

View Article

How do I insert a data extension variable immediately after an "="?

So within my email, I can call a data extension field:%%User_Type%%When previewed, this displays as either "Free" or "Premium" depending on the user.For data tracking via google analytics, I want a...

View Article
Browsing all 357 articles
Browse latest View live