Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


Queries the ID of the sent mailing by means of the waveId in Optimizely Campaign.

The waveId uniquely identifies the mailing sent with this closed loop process.

Type: long


sessionIdStringID of the session
waveIdlongID returned by prepareNewWave

Return values

ID of the sent mailing

Returns 0 if no mailing has yet been sent for the specified waveId.

Code structure

long getMailingIdByWaveId(String sessionId, long waveId)