Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

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

getAssignedMailings

Queries the IDs of the mailings in which a coupon block was used in Optimizely Campaign.

Type: long[ ]

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block

Return values

The IDs of all mailings in which this block has been used

Code structure

long[] getAssignedMailings(String sessionId, long blockId)