Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In

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)

What’s Next