Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getMailingId

Queries the mailing ID (parameter mailingId) in Optimizely Campaign.

📘

Note

The mailing must have been sent. Only then is a mail ID created.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the session
mailIdStringMail ID

Return values

Mailing ID

Code structure

long getMailingId(String sessionId, String mailId)