How is ampscript used in Salesforce cloud connect?

How is ampscript used in Salesforce cloud connect?

With Marketing Cloud Connect, there is also a stream of Salesforce data flowing back into Marketing Cloud in the form of synchronized data extensions, which are typically refreshed every 15 minutes. This will allow us to use the various lookup functions in AMPScript to speed up some processes.

Do you have to run ampscript on cloudpages?

Yes, it has to be iframed, rather than pasted as HTML like the web-to-case form, because AMPScript has to run on a CloudPage both to process and to leverage Marketing Cloud Connect. This solution assumes that you have Salesforce and have configured Marketing Cloud Connect.

What are the functions of Marketing Cloud Connect?

With Marketing Cloud Connect comes a set of AMPScript functions that allow you to communicate directly with your connected Salesforce org. The ones we will focus on for this solution are: CreateSalesforceObject, RetrieveSalesforceObjects, and UpdateSingleSalesforceObject.

How often does Salesforce cloud connect refresh data?

You can access and modify both standard and custom objects. With Marketing Cloud Connect, there is also a stream of Salesforce data flowing back into Marketing Cloud in the form of synchronized data extensions, which are typically refreshed every 15 minutes.

How does the updatesinglesalesforceobject function work in Salesforce?

The UpdateSingleSalesforceObject function allows you to update a record in an object in Salesforce (both standard and custom objects). You need to have the connector enabled and configured correctly in order for this AMPscript function to work. You do not need to have the object synced via Synchronized Data Extensions.

How do I find my email address in Salesforce?

Using Email Address as a look-up field, search for a Contact in Salesforce. If the Contact exists, then update fields related to the Contact record (First Name and Last Name in this case) and return the Contact Id.

Where does the updatesinglessalesforceobject find the record?

The UpdateSinglesSalesforceObject finds the record ( 0033000000GvHJL) on the Contact object and updates HasOptedOutofEmail to “true.”