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

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide
NuGetDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

getAllIds

Queries the IDs of all existing coupon blocks in Optimizely Campaign.

Type: long[ ]

Parameters

NameTypeValue
sessionIdStringID of the current session
couponSourceStringType of the coupon block:

- static – Contains static coupon codes. These must be added manually (add or addAll.
- generated – Coupon codes are automatically generated when sending the mailing and are unique.

Return values

The IDs of all existing coupon blocks

Code structure

long[] getAllIds(String sessionId, String couponSource)

Did this page help you?