HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

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)

What’s Next
Did this page help you?