Verification in progress Test scripts included

Syntax

ClaimRowValue(dataExt, returnColumn, claimColumn, fallbackValue, claimantColumn, claimantValue[, additionalColumnNameN, additionalColumnValueN, ...])  →  string

Parameters

Name Type Required Description
dataExt string Yes Name or external key of the claimable data extension
returnColumn string Yes Column whose value is returned from the claimed row
claimColumn string Yes Boolean column that marks a row as claimed; must be required and default to False
fallbackValue string Yes Value returned when no unclaimed rows remain
claimantColumn string Yes Column written with the claimant value when a row is claimed
claimantValue string Yes The value identifying who is claiming — a distinct value claims the next row; a repeated value returns that claimant’s existing value
additionalColumnNameN string No Name of a further column to write on the claimed row (record extra context at claim time). Repeatable as name/value pairs.
additionalColumnValueN string No Value written to the paired additionalColumnNameN column on the claimed row

Example

%%[
  SET @r = ClaimRowValue("ProbeDE", "Code", "IsClaimed", "none", "K", "v")
]%%

An email containing this six-argument call, placed in a branch that never runs, saved and published. What the call returns or writes in Next has not been tested.

Return value

string — the declared return type. No result has been observed in Next yet.

Behaviour

Next accepts the six-argument syntax. An email with ClaimRowValue("ProbeDE", "Code", "IsClaimed", "none", "K", "v") inside an IF 1 == 2 branch saved and published, and the rest of the email rendered.

Claiming was not tested. A claim writes to the data source, and there was no claimable data source in the Next org to test against. None of the Engagement results (value returned, repeat claimant, fallback when exhausted, extra columns written, calls with fewer than six arguments) has been checked in Next.

Show Next test script
<!-- Marketing Cloud Next test script for ClaimRowValue. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[gated] got=[%%[IF 1 == 2 THEN SET @r = ClaimRowValue("ProbeDE","Code","IsClaimed","none","K","v") ENDIF]%%gated]</p>

Availability & differences

PlatformAvailable
Marketing Cloud EngagementYes
Marketing Cloud NextNot listed for Next in the official AMPscript reference. The language catalog lists it from API 68.0; an email containing it saves, rendering was not tested
Not compared with Marketing Cloud Engagement yet

Engagement claims the next unclaimed data extension row and returns one of its columns, the same value to a repeat claimant, and the fallback once all rows are taken. In Next, only saving an email with the call has been tested, so the two cannot be compared yet. Compared 2026-11-23 by rendering the same calls in a Marketing Cloud Next email.

See also