We have a Journey Builder Update Contact Activity writing to a DE field called
JourneyEntryDate with the current system timestamp as each contact passes through this canvas activity. In a subsequent email the journey, we wish to add +14 days to this DE datetimestamp and then convert it to the local time.
It can be tricky converting a datetime field from a Data Extension to the local date using the
SystemDateToLocalDate() function. Error returned “string was not recognized as a valid DateTime.”
It won’t work because the DE data field we are trying to convert is not a “system” data…
By default MS SQL Server has configured Sunday as the first day of a week. Unfortunately you’re unable to set the server config for the first day of a week in Salesforce Marketing Cloud, so you’ll need a SQL approach.
In the expression below, we add the specified number of weeks to the 0 date. What does that mean? Well, the date 0 represents midnight on Monday, 1 January 1900.
DATEADD(wk, FLOOR(DATEDIFF(day,0,current_timestamp)/7.0), 0)
DATEDIFF(day, 0, current_timestamp)will give the number of days since 1900-01-01 (which importantly was a Monday)
FLOOR(DATEDIFF(day, 0, current_timestamp)/7.0)Converts days since 1900–01–01 into weeks and rounds…
What we have below is an edited response from a WSProxy api retrieve call to the SubscriberStatusEvent SOAP object. Within the “Results” array, we can see that the “Properties” array is an array of objects, with each object having two attributes, Name and Value.
var res = prox.retrieve("SubscriberStatusEvent", cols, filter);Write("Output:<br><br>" + Stringify(res));****************
"CreatedDate": "2019-02-11T21:25:04.640", …
This post comes off the back of a webinar hosted by Eliot Harper and Ivan Razine in which the very important topic of secure development practices was covered. One of the key learnings was how to protect your API credentials (clientID and clientSecret) on CloudPages. I’d encourage you to watch the webinar recording for some excellent nuggets of information. This blog post is my takeaway from the presentation, with the aim of helping to spread good development practices.
Many times during troubleshooting and working remotely have I needed to share the setup of data extension within Salesforce Marketing Cloud with colleagues or clients. And you know what they say; a picture is worth a thousand words. Having said that, its actually quite difficult to get a screenshot of your Data Extension setup and have all the fields included in the picture. So what are you to do?
If you’ve ever been in a similar situation I have the perfect solution….
Step 0: Open SFMC inside Google Chrome browser.
Step 1: Load your Data Extension on the properties on…
Date fields in Marketing Cloud can be challenging. They are stored in a specific format that includes a time component, and you may have to deal with different time zones.
(Unless your account is on Stack 4, which is in US Mountain time — UTC minus 7 hours).
AT TIME ZONE ‘Central America Standard Time'UTC-06. This is NOT to be confused with
Central Standard Timewhich often does…
_ListSubscribersData Views in Salesforce Marketing Cloud have a wealth of information that can be used to uncover when a subscriber was added to the system, when they unsubscribe and their current status (active, unsubscribed, bounced or held).
Amongst the most valuable information nested in these views is the subscriber status which signifies whether a subscriber can be contacted or not. …
Where do you go to learn about Salesforce Marketing Cloud APIs? Here’s a list of my favourite resources, in no particular order. Credit and thanks goes to each of the authors.
A Newbie’s Guide to API…from a newbie.
Help! Where can I find information on Salesforce Marketing Cloud REST and SOAP API’s?
CloudPagesURL() function provides a secure and efficient way to link out to CloudPages from email messages.
<a href="%%=RedirectTo(CloudPagesURL(4132))=%%">Click HERE</a>
It generates a URL link to the landing page with an encrypted query string appended —meaning no subscriber information is passed in clear text.
This encrypted query string (
?qs=______) references the email and allows standard system personalisation strings to be used on a landing page.
When using the
RedirectTo(CloudPagesURL(1234)) function, I was curious if it was required to use
queryParameter, or possibly
In fact, it is A LOT simpler than that. As you would in an email, you…
The March 2020 Release provides ability to get delivery receipts for individual SMS sends using the _SMSMessageTracking data view.
Full detail on the data view can be obtained here:
If you want to filter your query results to a particular send you need to get the MessageID.
To get the MessageID, we need to click on the message name and look at the last part of the page URL. The last characters preceding the last forward slash is your Base64 encoded text version of the MessageID.
Copy the Base64 encoded text and use an online Base64 decoder to decode…
I am a certified Salesforce Marketing Cloud Consultant at Bower House Digital in Melbourne, Australia.