5

The SObject Tree only handles single records and you need to use this method for multiple records. However, I'm not sure why you don't simply use the CreateSalesforceObject AMPscript function instead, as you won't have to worry about OAuth and Salesforce AMPscript functions won't count towards your API usage limit. You can simply crate something like this: ...


5

I think that means "until [you're ready to] move to CloudPages" (i.e., CloudPages aren't missing any features that I need). From the Content Builder FAQ: What if I Want to Create Content for Classic Landing Pages and Microsites? Where possible, use CloudPages. Support for classic Landing Pages and Microsites goes beyond the end-of-support and ...


4

Yes and yes. You can use an iframe to embed a SFMC Microsite page in a 3rd party site. Also, you can use the FuelSDK and write API calls (or use your own implementation of the SFMC SOAP or REST API) to populate Data Extension rows and fire off triggered emails.


4

If you link to your page like this, all of the data points in your send context will be available automatically: <a href="%%=redirectto(concat(CloudPagesURL(111),"&mid=", memberid))=%%">link</a> (The 111 is the PageID of your CloudPage.) Then in your page, you can retrieve the values by name with the AttributeValue() function: %%[ var @...


4

There are two parts to classic microsites: the (1) microsite itself and the (2) microsite definition. Part One From the top, navigate to Content From the left, navigate to My Microsites Create a new Microsite Enter your microsite's properties then Save (whether to "Auto Publish" or not is up to you; more on this later at the end of Part Two) Create a ...


3

There are two ways that you can approach this. Do it with Ampscript with InvokeUpdate API function. Check the Usage part on the documentation site, it's similiar to your use case, you just need to change status to 'Unsubscribed' from 'Active' and Save Options to 'Update' from 'UpdateAdd' to make it work Pass your variable from Ampscript to SSJS via SSJS ...


3

You should be using the Attribute.GetValue() function to retrieve the personalization string values: <script runat="server" language="javascript"> Platform.Load('Core', '1'); var subscriberkey = Attribute.GetValue('_subscriberkey'); var emailaddress = Attribute.GetValue('emailaddr'); var jobid = Attribute.GetValue('jobid'); var ...


3

There is a SetCookie value you can use in SSJS. <script runat=server> Platform.Response.SetCookie("cookieName","cookieValue","2015-12-31 140000.999",true); Properties are below. Values 3 and 4 (the date and time and HTTPS connection) are optional. SetCookie(Session cookie name, Session cookie value, Date and time value indicating cookie expiration,...


2

I generally do this with a single page. Here's a boilerplate that I created, which utilizes SSJS and a little bit of AMPScript: <script type="text/javascript" runat="server"> Platform.Load("core", "1.1.1"); var debug = false; var request = {}; SetVar("urlThis", Platform.Request.RequestURL); if (Request.Method == "GET") { ...


2

Each page allows for a specific type of security setting you can set in the page's properties. According to the docs: Security - Determines whether you require users to log in to see this landing page. Available to all visitors - no credentials are required to access the landing page once it is running. Application Users Only - a user must be logged in to ...


2

I have noticed that sometimes the custom fonts which are externally linked gets blocked in sfmc cloud pages and microsites. There is a work around to this by Base64encoding the font file into css header or css file. Basically you will have to Base64Encode the font file and put it in your css header up top in your microsite. Here is the link to the site. ...


2

Create a Landing page with HTML form create a backend page where you will write the ampscript code create a trigger send Dataextension using trigger send template (creation method -> create from template -> TriggeredSendDataExtension) Note: if you cannot see the TriggeredSendDataExtension template contact salesforce tech support they will enable it. Your ...


2

The Survey Tool you describe in indeed limited and has short comings when it comes to putting surveys in email, as a Form directly inside the email is dependent on the handling capabilities of the email client. Best practice & recommendation would be to link to a survey on a Webpage / Cloud Page. If you are using Cloud Pages, you could build a custom ...


2

You can utilize personalization strings and AMPScript inside of a Cloudpage no problem. The hardest part is passing the values along. SFMC has included an AMPScript function to assist called CloudPagesURL() which will pass all the personalization strings and attributes attached to the subscriber into the Cloud Page. This would be used in the email like so &...


2

First of all welcome. General notes: Everything in your usecase points towards SQL instead of AMPScript. LookupRows(), and all script based retrievals in SFMC have a row limit of 2000 / 2500 rows respectively. Keep that in mind when deciding what to use. LookupRows and related functions work with precise matches, there are no ranges or other comparisons (...


1

The easiest way to push data to Data Extensions from Cloud Pages is using Smart Capture. It is entirely a drag and drop configuration, where you select the Data Extension to which your data should be posted, and the form fields will automatically be created and reference the Data Extension fields. Another advantage of using Smart Capture, is the ability to ...


1

You can just redirect the form to another CloudPage which shows confirmation to the user but also has Ampscript code which saves the input into Marketing Cloud. Here is an example with simple HTML. <form action="%%=RedirectTo(CloudPagesURL(pageID,'radAnswer',RequestParameter('radAnswer'), 'otherText',RequestParameter('otherText')))=%%" id="myForm" ...


1

Basic GTM/GA setup is no different on microsites and Cloud Pages, compared to any other website. Unless you want to pass specific information to GTM data layer from e.g. AmpScript, you just need to copy & paste the basic GA JavaScript into your microsite pages.


1

A microsite is a collection of one or more landing pages hosted in your account. Use a microsite to contain information beyond what you include in an email. For example, you can create a microsite to contain a lead-generation form, an opt-in subscriber form, or to direct subscribers to more information about a corporate initiative. A larger distinction is ...


1

Yes, it's possible. Yes, you can. You can use AMPSCript in Microsite as you use it in Email including retrieving data from a salesforce ojbect. Set @rows2 = LookupOrderedRows("Cars",4,"Horsepower Desc","MPG",Field(@cardata,"MPG")) %%[ var @rs Set @rs= RetrieveSalesforceObjects('Lead', 'Id, FirstName,LastName', 'region', '=', 'west') ]%%


1

It turns out it was much easier to solve than I had thought. Just had to filter by Category ID. SET @fs = CreateObject("SimpleFilterPart") SetObjectProperty(@fs, "Property", "CategoryID") SetObjectProperty(@fs, "SimpleOperator", "equals") AddObjectArrayItem(@fs, "Value", <CategoryID Value>)


1

How will end-users arrive on the microsite? If coming from a link in an email footer, then using MicrositeURL() function in the email ampscript would be best practice. If arriving on the page from an external link, then you will need to pass the email address as part of the querystring. The below code will work for both scenarios. %%[ var @email set @...


1

Something like this: <script type="text/javascript" runat="server"> Platform.Load("core", "1.1.1"); var var1 = Variable.GetValue("@var"); // or whatever if (var1 > 1) { Write("Show this content"); } else { Write("Show that content"); } </script> I have an example here that shows a mixture of AMPScript and SSJS. Also this official ...


1

There's a couple of ways to do this. You could create an API in Apex using REST, for example, that allows your public site to access data in your Salesforce org. A class that does this, might look like below: @RestResource(urlMapping='/vacancies/bulk') global with sharing class MyNewCoolAPI { @HttpGet global static List<Jobs__c> show() { ...


1

I´m answering myself. :) I had to "publish" the page before being able to access via the URL. To do that, Interaction > Microsites. Here create a new one, and "start" it.


1

Found the cause: background-image: url('') in the html element on the landing page somehow caused the page to relaod and execute AMPscript twice in this process. I got rid of that and AMPscript execution works fine. Tested for Chrome 57.0.2987.133.


1

You have to use third party APIs to short the Microsite URL in an SMS. You refer this link shortened URLs and in provided example they have used bit.ly API and few basic AmpScript functions to short the Microsite URL.


1

Your filter isn't getting re-evaluated when you set the values before each retrieve. I'd make function to return the filter based on the Rep and Value. Something like this: <script runat="server"> Platform.Load("core","1"); var CollectDE = DataExtension.Init("BiAnnualSurvey_Collection"); var Rep = Variable.GetValue("@Rep"); function setFilter(rep, ...


1

We had this problem too - we had to contact our account manager to purchase new SSL certificates, and also get the option to create HTTPS:// pages in CloudPages activated on our account (it is not available by default).


1

Personalized URLs are not HTTPS unless you work with SFMC to configure an SSL certificate. You can, however, use the base SFMC landing page URL with HTTPS -- with the same QS parameter: https://pages.exacttarget.com/page.aspx?QS=YOURPAGESPARAMETERHERE


Only top voted, non community-wiki answers of a minimum length are eligible