Which function is restricted to use in landing pages, microsites, CloudPages, or an SMS message in MobileConnect?

InsertDE

InsertData

UpsertDE

UpsertData

Focus on how data writes work in CloudPages, microsites, CloudPages, and MobileConnect. When you’re collecting user inputs on a landing page or via SMS and you want to persist that data to a Data Extension, you often need to either add a new row or update an existing one in a single operation. UpsertData does exactly that: it upserts a row based on a key field, inserting if it doesn’t exist and updating if it does. This behavior is ideal for landing pages and MobileConnect interactions where you want to avoid duplicate records and keep data current.

In practice, you define a primary key on the Data Extension and pass the field values to UpsertData. If a row with the key already exists, the function updates the specified fields; if not, it creates a new row. That single-call upsert is why this function is the one used in these contexts.

Other functions either insert only (which can create duplicates) or are not appropriate for CloudPages/MobileConnect workflows, so they aren’t used in these scenarios.

Want more questions?

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy