LongSfid()

Returns an 18-character Salesforce ID when provided with a 15-character ID.

Availability 

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ❌ No

Syntax 

1LongSFID(shortSfid)

The LongSFID() function has one parameter:

  • shortSfid (string): Required. A 15-character Salesforce ID.

Usage 

To use the function, pass it a shortened 15-character Salesforce ID.

1%%[
2  Var @shortId, @longId
3  Set @shortId = "0036000000QKv5T"
4  Set @longId = LongSfid(@shortId)
5]%%
6
7<p>The long ID is %%=v(@longId)=%%</p>

The example returns 0036000000QKv5TAAT.