AMPscript ClaimRow (Next)
AMPscript ClaimRow in Marketing Cloud Next: syntax and what has been proven so far. An email containing the call saves; claiming a row has not been tested in Next.
Syntax
ClaimRow(dataExt, claimColumn, claimantColumn, claimantValue[, additionalColumnNameN, additionalColumnValueN, ...]) → row
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dataExt |
string | Yes | Name or external key of the claimable data extension |
claimColumn |
string | Yes | Boolean column that marks a row as claimed; must be required and default to False |
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 row |
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 = ClaimRow("ProbeDE", "IsClaimed", "K", "v")
]%%
An email containing this 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
row — the declared return type. No result has been observed in Next yet.
Behaviour
Next accepts the syntax. An email with ClaimRow("ProbeDE", "IsClaimed", "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 (row returned, claim flag set, repeat claimant, empty row when exhausted, extra columns written) has been checked in Next.
Show Next test script
<!-- Marketing Cloud Next test script for ClaimRow. 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 = ClaimRow("ProbeDE","IsClaimed","K","v") ENDIF]%%gated]</p>
Availability & differences
| Platform | Available |
|---|---|
| Marketing Cloud Engagement | Yes |
| Marketing Cloud Next | Not 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 |
Engagement claims the next unclaimed data extension row, returns it, returns the same row to a repeat claimant and an empty row 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
ClaimRowValue— the twin that returns one column valueFieldLookupRows- Official reference