Verification in progress Test scripts included

Takes the first row of a marketing object that nobody has claimed yet, marks it as claimed, and returns it. Errors when every row is already claimed.

Syntax

{{claimRow ...options}}

Returns object.

Parameters

Name Type Required Description
options any Yes, repeatable Named arguments only: object (marketing object name) and claimCol (column that flags a claimed row) are required, followed by one or more column=”value” pairs to write into the claimed row.

Example

Tested in Marketing Cloud Next emails on 2026-11-25, one call per email:

  • {{#if false}}{{claimRow object="ProbeCoupons" claimCol="IsClaimed" EmailAddress="probe@example.com"}}{{/if}} is accepted when the email is saved (named parameters only).
  • {{get (claimRow object="zzprobecoupons__mo" claimCol="IsClaimed__c" EmailAddress__c="probe@example.com") "CouponCode__c"}}, and the same call inside {{#with}}: the preview fails with HTTP 500 and no message, and the row stays unclaimed afterwards.

Whether a real send claims a row was not tested, because the test org allows no sends. An earlier result from 2026-11-22 that called this helper unsupported came from an email that mixed several helpers with invalid call syntax; it is withdrawn.

Thanks to Nobuyuki Watanabe’s SFMC Tips #378 for showing how claimRow and assignCoupon split the coupon work.

Show Next test script
<!-- Marketing Cloud Next test script for the claimRow helper. 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 false}}{{claimRow object="ProbeCoupons" claimCol="IsClaimed" EmailAddress="probe@example.com"}}{{/if}}gated]</p>

Show calls that fail in Next (one email each)
<!-- Run each call below in its own Next email: one of them in a combined email
     would stop the whole preview or block the save. -->

<!-- email 1: expect that the email saves, but the preview fails (HTTP 500) -->
{{get (claimRow object="zzprobecoupons__mo" claimCol="IsClaimed__c" EmailAddress__c="probe@example.com") "CouponCode__c"}}

Marketing Cloud Next

Not runtime-tested in Marketing Cloud Next yet

Accepted when the email is saved. In a preview the call failed with HTTP 500 and claimed no row; a real send was not tested. Tested 2026-11-25 by rendering in a Marketing Cloud Next email.

See also