HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

setAttributesInBatch

Defines new values for specific attributes of multiple recipients in Optimizely Campaign.

This method can be replaced by the .NET replacement method setAttributesInBatchFlat.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
recipientListIdlongID of the recipient list
recipientIdsString[ ]IDs of the recipients
attributeNamesString[ ][ ]Field names of the fields (e.g., firstname, lastname etc.) that are to be updated
attributeValuesString[ ][ ]New values for the attributes/fields defined with attributeNames

Each entry must be formatted according to the formatting rules.

Return values

** **-

Code structure

void setAttributesInBatch(String sessionId, long recipientListId, String[] recipientIds, String[][] attributeNames, String[][] attributeValues)

What’s Next
Did this page help you?