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
Legal TermsNuGetDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

getAssignedCodeCount

Counts the coupon codes of a coupon block that are assigned to an email in any sent mailing in Optimizely Campaign.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the current session
blockIdlongID of the coupon block

Return values

The number of assigned codes in this block

Code structure

long getAssignedCodeCount(String sessionId, long blockId)

Did this page help you?