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

getAttributes

Queries the attributes defined by the parameter attributeNames in Optimizely Campaign.

Type: String[ ]

Parameters

NameTypeValue
sessionIdStringID of the session
recipientListIdlongID of the recipient list
recipientIdStringID of the recipient
attributeNamesString[ ]Field names (e.g., firstname, lastname etc.)

Return values: Attribute values according to the given attribute names. Each entry is formatted according to the Type conversion and formatting rules.

Code structure

String[] getAttributes(String sessionId, long recipientListId, String recipientId, String[] attributeNames)